PHP7 Prototype

This commit is contained in:
Dominik Liebler
2016-09-22 14:56:44 +02:00
parent 61a6f03f04
commit f4c9af503b
6 changed files with 37 additions and 44 deletions

View File

@@ -2,9 +2,6 @@
namespace DesignPatterns\Creational\Prototype;
/**
* class BookPrototype.
*/
abstract class BookPrototype
{
/**
@@ -17,24 +14,13 @@ abstract class BookPrototype
*/
protected $category;
/**
* @abstract
*
* @return void
*/
abstract public function __clone();
/**
* @return string
*/
public function getTitle()
public function getTitle(): string
{
return $this->title;
}
/**
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;