| Total Complexity | 4 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class Stream extends \Nette\Tokenizer\Stream |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Match next token. |
||
| 17 | * |
||
| 18 | * Make sure the next token matches a certain type or value and return it. |
||
| 19 | * |
||
| 20 | * @param int|string ...$args |
||
| 21 | * |
||
| 22 | * @throws TokenizerException When next token does not match the given type(s) or value(s). |
||
| 23 | * |
||
| 24 | * @return Token |
||
| 25 | */ |
||
| 26 | public function matchNext(...$args): Token |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Whether we have more tokens in the stream. |
||
| 50 | * |
||
| 51 | * @return bool |
||
| 52 | */ |
||
| 53 | public function hasNext(): bool |
||
| 58 |