From 9f58653b49878591a87a0b2cc0000c339104c032 Mon Sep 17 00:00:00 2001 From: jay Date: Fri, 12 Jun 2026 15:34:52 -0400 Subject: [PATCH] re-word --- README.md | 2 +- composer.json | 2 +- src/Potter/Resource/AbstractResource.php | 17 -------- src/Potter/Resource/Resource.php | 10 ----- src/Potter/Resource/ResourceInterface.php | 9 +---- src/Potter/Resource/ResourceTrait.php | 47 ----------------------- 6 files changed, 3 insertions(+), 84 deletions(-) delete mode 100644 src/Potter/Resource/AbstractResource.php delete mode 100644 src/Potter/Resource/Resource.php delete mode 100644 src/Potter/Resource/ResourceTrait.php diff --git a/README.md b/README.md index b2f9d6f..342fde7 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # Resource -Potter Framework Resource Implementation \ No newline at end of file +Potter Framework Resource Interface \ No newline at end of file diff --git a/composer.json b/composer.json index 604c4ad..d7ebc08 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "potter/resource", - "description": "Potter Framework Resource Implementation", + "description": "Potter Framework Resource Interface", "type": "library", "require": { "php": "^8.5", diff --git a/src/Potter/Resource/AbstractResource.php b/src/Potter/Resource/AbstractResource.php deleted file mode 100644 index 83b8386..0000000 --- a/src/Potter/Resource/AbstractResource.php +++ /dev/null @@ -1,17 +0,0 @@ -get(self::RESOURCE); - } - - final public function hasResource(): bool - { - return $this->has(self::RESOURCE); - } - - final protected function setResource($resource) - { - return $this->set(self::RESOURCE, $resource); - } - - final protected function unsetResource(): void - { - $this->unset(self::RESOURCE); - } - - final public function withResource($resource): static - { - return $this->with(self::RESOURCE, $resource); - } - - final public function withoutResource(): static - { - return $this->without(self::RESOURCE); - } - - abstract public function get(string $key): mixed; - abstract public function has(string $key): bool; - abstract protected function set(string $key, mixed $value): mixed; - abstract protected function unset(string $key): void; - abstract public function with(string $key, mixed $value): static; - abstract public function without(string $key): static; -}