mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-23 01:02:25 +01:00
29 lines
409 B
PHP
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;
|
|
}
|
|
}
|