Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
19 | 1 | public function parse(Parser $parser) |
|
20 | { |
||
21 | 1 | $parser->match(Lexer::T_IDENTIFIER); |
|
22 | 1 | $parser->match(Lexer::T_OPEN_PARENTHESIS); |
|
23 | 1 | $this->condition = $parser->ConditionalExpression(); |
|
24 | |||
25 | 1 | $parser->match(Lexer::T_COMMA); |
|
26 | 1 | $this->isTrueStatement = $parser->ArithmeticExpression(); |
|
27 | |||
28 | 1 | $parser->match(Lexer::T_COMMA); |
|
29 | 1 | $this->isFalseStatement = $parser->ArithmeticExpression(); |
|
30 | |||
31 | 1 | $parser->match(Lexer::T_CLOSE_PARENTHESIS); |
|
32 | 1 | } |
|
33 | |||
43 |