update deps & install rector

This commit is contained in:
Dominik Liebler
2019-12-14 12:50:05 +01:00
parent 04acce6759
commit 579a5ac946
87 changed files with 2432 additions and 786 deletions

View File

@@ -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;
}