generated from Potter/Template
initialize
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,4 +1,4 @@
|
||||
composer.lock
|
||||
composer.phar
|
||||
/nbproject/private/
|
||||
/nbproject/
|
||||
/vendor/
|
||||
@@ -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;
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Potter\Cloneable;
|
||||
|
||||
abstract class Cloneable extends AbstractCloneable
|
||||
{
|
||||
use CloneableTrait;
|
||||
}
|
||||
@@ -6,7 +6,7 @@ namespace Potter\Cloneable;
|
||||
|
||||
trait CloneableTrait
|
||||
{
|
||||
public function clone(): static
|
||||
final public function clone(): static
|
||||
{
|
||||
return clone $this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user