| Total Complexity | 2 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class LexemeEmitter implements Emitter { |
||
| 6 | |||
| 7 | /** @var Lexeme[] */ |
||
| 8 | private array $lexemes = []; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @internal This is for use by the Parser |
||
| 12 | */ |
||
| 13 | 5 | public function emit( Lexeme $lexItem ) : void { |
|
| 14 | 5 | $this->lexemes[] = $lexItem; |
|
| 15 | } |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Return the Lexemes received by the emitter as an immutable LexemeCollection |
||
| 19 | */ |
||
| 20 | 5 | public function getLexemes() : LexemeCollection { |
|
| 22 | } |
||
| 23 | |||
| 25 |