Total Complexity | 6 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
17 | abstract class AbstractReader implements ReaderInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var LexerInterface |
||
21 | */ |
||
22 | private $lexer; |
||
23 | |||
24 | /** |
||
25 | * Initializes a new instance of this class. |
||
26 | * |
||
27 | * @param LexerInterface $lexer |
||
28 | */ |
||
29 | public function __construct(LexerInterface $lexer) |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * Reads a collection of tokens that form a game. |
||
36 | * |
||
37 | * @return TokenIterator|null Returns null when no tokens are left; an TokenIterator otherwise. |
||
38 | * @throws InvalidTokenException Thrown when an invalid token was found during reading. |
||
39 | */ |
||
40 | public function read(): ?TokenIterator |
||
65 |