mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-07 15:36:34 +02:00
PHP7 Prototype
This commit is contained in:
@@ -4,11 +4,11 @@ namespace DesignPatterns\Creational\Prototype;
|
||||
|
||||
class FooBookPrototype extends BookPrototype
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $category = 'Foo';
|
||||
|
||||
/**
|
||||
* empty clone.
|
||||
*/
|
||||
public function __clone()
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user