| Conditions | 4 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| 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() and $right->getValue() |
||
| 29 | ); |
||
| 30 | } |
||
| 31 | |||
| 32 | return new CompiledExpression(); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |