From 90a45aee7c1450bce4585e9963ad383f1462405e Mon Sep 17 00:00:00 2001 From: Sebastian Krupinski Date: Sat, 14 Feb 2026 11:48:06 -0500 Subject: [PATCH] chore: standardize protocol Signed-off-by: Sebastian Krupinski --- .../ServiceCollectionMutableInterface.php | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/shared/lib/Mail/Service/ServiceCollectionMutableInterface.php b/shared/lib/Mail/Service/ServiceCollectionMutableInterface.php index 99da45f..82fd261 100644 --- a/shared/lib/Mail/Service/ServiceCollectionMutableInterface.php +++ b/shared/lib/Mail/Service/ServiceCollectionMutableInterface.php @@ -23,8 +23,8 @@ use KTXF\Mail\Collection\CollectionMutableInterface; interface ServiceCollectionMutableInterface extends ServiceBaseInterface { public const CAPABILITY_COLLECTION_CREATE = 'CollectionCreate'; - public const CAPABILITY_COLLECTION_MODIFY = 'CollectionModify'; - public const CAPABILITY_COLLECTION_DESTROY = 'CollectionDestroy'; + public const CAPABILITY_COLLECTION_UPDATE = 'CollectionUpdate'; + public const CAPABILITY_COLLECTION_DELETE = 'CollectionDelete'; public const CAPABILITY_COLLECTION_MOVE = 'CollectionMove'; /** @@ -50,29 +50,29 @@ interface ServiceCollectionMutableInterface extends ServiceBaseInterface { public function collectionCreate(string|int|null $location, CollectionMutableInterface $collection, array $options = []): CollectionBaseInterface; /** - * Modifies an existing collection + * Updates an existing collection * * @since 2025.05.01 * * @param string|int $identifier Collection ID * @param CollectionMutableInterface $collection Updated collection data * - * @return CollectionBaseInterface Modified collection + * @return CollectionBaseInterface Updated collection */ - public function collectionModify(string|int $identifier, CollectionMutableInterface $collection): CollectionBaseInterface; + public function collectionUpdate(string|int $identifier, CollectionMutableInterface $collection): CollectionBaseInterface; /** - * Destroys a collection + * Deletes a collection * * @since 2025.05.01 * * @param string|int $identifier Collection ID - * @param bool $force Force destruction even if not empty - * @param bool $recursive Recursively destroy contents + * @param bool $force Force deletion even if not empty + * @param bool $recursive Recursively delete contents * - * @return bool True if destroyed + * @return bool True if deleted */ - public function collectionDestroy(string|int $identifier, bool $force = false, bool $recursive = false): bool; + public function collectionDelete(string|int $identifier, bool $force = false, bool $recursive = false): bool; /** * Moves a collection to a new parent