refactor: entity move and delete
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -9,10 +9,12 @@ declare(strict_types=1);
|
||||
|
||||
namespace KTXF\Resource\Identifier;
|
||||
|
||||
use KTXF\Json\JsonSerializable;
|
||||
|
||||
/**
|
||||
* A typed collection of resource identifiers with search and filter capabilities
|
||||
*/
|
||||
interface ResourceIdentifiersInterface extends \Countable, \IteratorAggregate {
|
||||
interface ResourceIdentifiersInterface extends JsonSerializable, \Countable, \IteratorAggregate {
|
||||
|
||||
/** Add an identifier to the collection */
|
||||
public function add(ResourceIdentifierInterface $identifier): void;
|
||||
@@ -47,4 +49,7 @@ interface ResourceIdentifiersInterface extends \Countable, \IteratorAggregate {
|
||||
/** Get unique entity names */
|
||||
public function entities(): array;
|
||||
|
||||
/** Serialize as an array of canonical identifier strings */
|
||||
public function jsonSerialize(): array;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user