for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/**
* @author : Jagepard <[email protected]>
* @license https://mit-license.org/ MIT
*/
namespace Creational\Prototype;
abstract class AbstractPrototype
{
public static int $count = 0;
abstract public function __clone();
* Gets the prototype
* ------------------
* Получает прототип
*
* @return AbstractPrototype
public function getPrototype(): AbstractPrototype
return clone $this;
}