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