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",
"type": "library",
"require": {
"php": "^8.4"
"php": "^8.4",
"potter/cloneable": "dev-main"
},
"license": "MIT",
"autoload": {

View File

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