DesignPatternsPHP/Prototype/BookPrototype.php
2013-09-24 14:02:52 +02:00

42 lines
556 B
PHP

<?php
namespace DesignPatterns\Prototype;
/**
* class BookPrototype
*/
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;
}
}