Conditions | 4 |
Paths | 2 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
21 | protected function compile($expr, Context $context) |
||
22 | { |
||
23 | $left = $context->getExpressionCompiler()->compile($expr->left); |
||
24 | $right = $context->getExpressionCompiler()->compile($expr->right); |
||
25 | |||
26 | if ($left->isTypeKnown() && $right->isTypeKnown()) { |
||
27 | return CompiledExpression::fromZvalValue( |
||
28 | $left->getValue() && $right->getValue() |
||
29 | ); |
||
30 | } |
||
31 | |||
32 | return new CompiledExpression(); |
||
33 | } |
||
34 | } |
||
35 |