Require Cloneable

This commit is contained in:
2025-10-25 12:00:39 -04:00
parent ee2ddf6e38
commit 287395aba5
2 changed files with 6 additions and 1 deletions

View File

@@ -2,7 +2,8 @@
"name": "potter/aware", "name": "potter/aware",
"type": "library", "type": "library",
"require": { "require": {
"php": "^8.4" "php": "^8.4",
"potter/cloneable": "dev-main"
}, },
"license": "MIT", "license": "MIT",
"autoload": { "autoload": {

View File

@@ -4,6 +4,8 @@ declare(strict_types=1);
namespace Potter\Aware; namespace Potter\Aware;
use \Potter\Cloneable\CloneableInterface;
trait AwareTrait trait AwareTrait
{ {
private array $aware = []; private array $aware = [];
@@ -22,4 +24,6 @@ trait AwareTrait
{ {
return $this->aware[$key] = $value; return $this->aware[$key] = $value;
} }
abstract public function clone(): CloneableInterface;
} }