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;
|
||||
|
||||
/**
|
||||
* Top-level identifier for resources (provider level)
|
||||
*/
|
||||
interface ResourceIdentifierInterface extends \Stringable {
|
||||
interface ResourceIdentifierInterface extends JsonSerializable, \Stringable {
|
||||
|
||||
/** The provider segment (e.g. "imap") */
|
||||
public function provider(): string;
|
||||
@@ -23,4 +25,7 @@ interface ResourceIdentifierInterface extends \Stringable {
|
||||
/** Canonical string form: provider[:service[:collection[:entity]]] */
|
||||
public function __toString(): string;
|
||||
|
||||
/** Canonical JSON form: provider[:service[:collection[:entity]]] */
|
||||
public function jsonSerialize(): string;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user