diff --git a/composer.json b/composer.json index b785e9d..c973cc8 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,8 @@ "name": "potter/aware", "type": "library", "require": { - "php": "^8.4" + "php": "^8.4", + "potter/cloneable": "dev-main" }, "license": "MIT", "autoload": { diff --git a/src/Potter/Aware/AwareTrait.php b/src/Potter/Aware/AwareTrait.php index 776c857..ba3abb5 100644 --- a/src/Potter/Aware/AwareTrait.php +++ b/src/Potter/Aware/AwareTrait.php @@ -4,6 +4,8 @@ declare(strict_types=1); namespace Potter\Aware; +use \Potter\Cloneable\CloneableInterface; + trait AwareTrait { private array $aware = []; @@ -22,4 +24,6 @@ trait AwareTrait { return $this->aware[$key] = $value; } + + abstract public function clone(): CloneableInterface; }