| Conditions | 2 |
| Paths | 2 |
| Total Lines | 22 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 2.1481 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | 2 | public function __invoke(NodeValueInterface $rootNode, RuntimeInterface $runtime): ValueListInterface |
|
| 27 | { |
||
| 28 | 2 | $input = (new NodeValueListBuilder) |
|
| 29 | 2 | ->addValue($rootNode, 0) |
|
| 30 | 2 | ->build(); |
|
| 31 | |||
| 32 | try { |
||
| 33 | return call_user_func( |
||
| 34 | $this |
||
| 35 | 2 | ->callbackBuilder |
|
| 36 | 2 | ->getCallback(), |
|
| 37 | $input, |
||
| 38 | 2 | $runtime->getValueListFetcher(), |
|
| 39 | 2 | $runtime->getEvaluator(), |
|
| 40 | 2 | $runtime->getLiteralFactory(), |
|
| 41 | 2 | $runtime->getMatcherFactory(), |
|
| 42 | ); |
||
| 43 | } catch (Throwable $e) { |
||
| 44 | throw new Exception\QueryExecutionFailedException( |
||
| 45 | $this->source, |
||
| 46 | $this->callbackBuilder->getCallbackCode(), |
||
| 47 | $e, |
||
| 48 | ); |
||
| 71 |