initialize

This commit is contained in:
2026-03-21 09:41:10 -04:00
parent 3470ce02f6
commit d494507861
4 changed files with 2 additions and 25 deletions

2
.gitignore vendored
View File

@@ -1,4 +1,4 @@
composer.lock
composer.phar
/nbproject/private/
/nbproject/
/vendor/

View File

@@ -1,13 +0,0 @@
<?php
declare(strict_types=1);
namespace Potter\Cloneable;
use \Potter\Template\Template;
abstract class AbstractCloneable extends Template implements CloneableInterface
{
abstract public function clone(): static;
abstract public function __clone(): void;
}

View File

@@ -1,10 +0,0 @@
<?php
declare(strict_types=1);
namespace Potter\Cloneable;
abstract class Cloneable extends AbstractCloneable
{
use CloneableTrait;
}

View File

@@ -6,7 +6,7 @@ namespace Potter\Cloneable;
trait CloneableTrait
{
public function clone(): static
final public function clone(): static
{
return clone $this;
}