mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-06 23:16:33 +02:00
update deps & install rector
This commit is contained in:
@@ -4,15 +4,8 @@ namespace DesignPatterns\Creational\Prototype;
|
||||
|
||||
abstract class BookPrototype
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $title;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $category;
|
||||
protected string $title;
|
||||
protected string $category;
|
||||
|
||||
abstract public function __clone();
|
||||
|
||||
@@ -21,7 +14,7 @@ abstract class BookPrototype
|
||||
return $this->title;
|
||||
}
|
||||
|
||||
public function setTitle($title)
|
||||
public function setTitle(string $title)
|
||||
{
|
||||
$this->title = $title;
|
||||
}
|
||||
|
Reference in New Issue
Block a user