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

@@ -2,17 +2,16 @@
namespace DesignPatterns\Behavioral\Iterator;
class BookList implements \Countable, \Iterator
use Countable;
use Iterator;
class BookList implements Countable, Iterator
{
/**
* @var Book[]
*/
private $books = [];
/**
* @var int
*/
private $currentIndex = 0;
private array $books = [];
private int $currentIndex = 0;
public function addBook(Book $book)
{