implement Potter\Cloneable

This commit is contained in:
2026-05-31 18:48:17 -04:00
parent 3dd31e21fe
commit 6c9332a0f4
2 changed files with 23 additions and 0 deletions
@@ -0,0 +1,10 @@
<?php
declare(strict_types=1);
namespace Potter\Cloneable;
interface CloneableInterface
{
public function clone(): static;
}
+13
View File
@@ -0,0 +1,13 @@
<?php
declare(strict_types=1);
namespace Potter\Cloneable;
trait CloneableTrait
{
final public function clone(): static
{
return clone $this;
}
}