2016-09-22 14:56:44 +02:00

29 lines
409 B
PHP

<?php
namespace DesignPatterns\Creational\Prototype;
abstract class BookPrototype
{
/**
* @var string
*/
protected $title;
/**
* @var string
*/
protected $category;
abstract public function __clone();
public function getTitle(): string
{
return $this->title;
}
public function setTitle($title)
{
$this->title = $title;
}
}