42 lines
567 B
PHP
Raw Normal View History

2013-09-13 14:34:13 +02:00
<?php
namespace DesignPatterns\Creational\Prototype;
2013-09-13 14:34:13 +02:00
/**
2013-09-24 14:02:52 +02:00
* class BookPrototype
2013-09-13 14:34:13 +02:00
*/
abstract class BookPrototype
{
/**
* @var string
*/
protected $title;
/**
* @var string
*/
protected $category;
/**
* @abstract
* @return void
*/
abstract public function __clone();
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
}