Files
DesignPatternsPHP/Creational/Prototype/BookPrototype.php
2021-07-16 21:02:00 -03:00

22 lines
390 B
PHP

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