| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | 1 | protected function compile($expr, Context $context) |
|
| 22 | { |
||
| 23 | 1 | $closure = new ClosureDefinition($expr); |
|
| 24 | 1 | $closure->setFilepath($context->getFilepath()); |
|
| 25 | 1 | $closure->preCompile($context); |
|
| 26 | 1 | $closure->compile(clone $context); |
|
| 27 | |||
| 28 | 1 | return new CompiledExpression( |
|
| 29 | 1 | CompiledExpression::CALLABLE_TYPE, |
|
| 30 | $closure |
||
| 31 | 1 | ); |
|
| 32 | } |
||
| 33 | } |
||
| 34 |