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