| Conditions | 4 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 5 | protected function compile($expr, Context $context) |
|
| 22 | { |
||
| 23 | 5 | $compiledExpression = $context->getExpressionCompiler()->compile($expr->expr); |
|
| 24 | 5 | switch ($compiledExpression->getType()) { |
|
| 25 | 5 | case CompiledExpression::INTEGER: |
|
| 26 | 5 | case CompiledExpression::DOUBLE: |
|
| 27 | 5 | case CompiledExpression::STRING: |
|
| 28 | 4 | return CompiledExpression::fromZvalValue(~$compiledExpression->getValue()); |
|
| 29 | 1 | } |
|
| 30 | |||
| 31 | 1 | return new CompiledExpression(); |
|
| 32 | } |
||
| 33 | } |
||
| 34 |