Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | 7 | public function parse(Token $token): Node |
|
27 | { |
||
28 | 7 | $stream = $this->parser->getStream(); |
|
29 | |||
30 | 7 | $presentationModel = $stream->expect(Token::STRING_TYPE)->getValue(); |
|
31 | |||
32 | 7 | $stream->expect(Token::BLOCK_END_TYPE); |
|
33 | |||
34 | 7 | return new ModelNode($presentationModel, $token->getLine(), $this->getTag()); |
|
35 | } |
||
45 |