fix: minor issues
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user