fix: minor issues
All checks were successful
JS Unit Tests / test (pull_request) Successful in 26s
Build Test / build (pull_request) Successful in 28s
PHP Unit Tests / test (pull_request) Successful in 53s

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-04-25 15:46:51 -04:00
parent a05313e3a1
commit 88c72542f2
3 changed files with 35 additions and 15 deletions

View File

@@ -24,7 +24,7 @@ interface ServiceEntityMutableInterface extends ServiceBaseInterface {
public const CAPABILITY_ENTITY_CREATE = 'EntityCreate';
public const CAPABILITY_ENTITY_MODIFY = 'EntityModify';
public const CAPABILITY_ENTITY_DESTROY = 'EntityDestroy';
public const CAPABILITY_ENTITY_DELETE = 'EntityDelete';
public const CAPABILITY_ENTITY_COPY = 'EntityCopy';
public const CAPABILITY_ENTITY_MOVE = 'EntityMove';
@@ -62,40 +62,40 @@ interface ServiceEntityMutableInterface extends ServiceBaseInterface {
* @return EntityBaseInterface Modified entity
*/
public function entityModify(string|int $collection, string|int $identifier, EntityMutableInterface $entity): EntityBaseInterface;
/**
* Destroys one or more entities
* Deletes entities
*
* @since 2025.05.01
* @since 2026.04.01
*
* @param string|int $collection Collection identifier
* @param string|int ...$identifiers Entity identifiers to destroy
* @param EntityIdentifier ...$identifiers Source entities to delete
*
* @return array<string|int,bool> List of destroyed entity identifiers
* @return array<string|int,bool|string> Results keyed by entity identifier (true on success, error string on failure)
*/
public function entityDestroy(string|int $collection, string|int ...$identifiers): array;
public function entityDelete(EntityIdentifier ...$identifiers): array;
/**
* Copies entities to another collection
*
* @since 2025.05.01
*
* @param string|int $target Target collection identifier
* @param array<string|int,array<string|int>> $sources Source entities to move (collection identifier => [entity identifier])
* @param CollectionIdentifier $target Target collection identifier
* @param EntityIdentifier ...$identifiers Source entities to copy
*
* @return array<string|int,bool> List of moved entity identifiers
* @return array<string|int,bool> List of copied entity identifiers
*/
public function entityCopy(string|int $target, array $sources): array;
public function entityCopy(CollectionIdentifier $target, EntityIdentifier ...$identifiers): array;
/**
* Moves entities to another collection
*
* @since 2025.05.01
*
* @param string|int $target Target collection identifier
* @param array<string|int,array<string|int>> $sources Source entities to move (collection identifier => [entity identifier])
* @param CollectionIdentifier $target Target collection identifier
* @param EntityIdentifier ...$identifiers Source entities to move
*
* @return array<string|int,bool> List of moved entity identifiers
*/
public function entityMove(string|int $target, array $sources): array;
public function entityMove(CollectionIdentifier $target, EntityIdentifier ...$identifiers): array;
}