| Conditions | 3 |
| Paths | 2 |
| Total Lines | 20 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 3.2621 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | 1 | protected function compile($expr, Context $context) |
|
| 26 | { |
||
| 27 | 1 | $expressionCompile = $context->getExpressionCompiler(); |
|
| 28 | 1 | $expressionCompile->compile($expr->class); |
|
| 29 | |||
| 30 | 1 | if (count($expr->args) > 0) { |
|
| 31 | foreach ($expr->args as $argument) { |
||
| 32 | $expressionCompile->compile($argument->value); |
||
| 33 | } |
||
| 34 | } |
||
| 35 | |||
| 36 | 1 | $context->debug( |
|
| 37 | 1 | '@todo We should support UnionTypes with FCQN assert...', |
|
| 38 | $expr |
||
| 39 | 1 | ); |
|
| 40 | |||
| 41 | 1 | return new CompiledExpression( |
|
| 42 | CompiledExpression::OBJECT |
||
| 43 | 1 | ); |
|
| 44 | } |
||
| 45 | } |
||
| 46 |