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; -}