Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | final class Query implements QueryInterface |
||
12 | { |
||
13 | |||
14 | private $callback; |
||
15 | |||
16 | private $isDefinite; |
||
17 | |||
18 | public function __construct(callable $callback, bool $isDefinite) |
||
22 | } |
||
23 | |||
24 | public function __invoke(RuntimeInterface $runtime, NodeValueInterface $rootNode): ValueListInterface |
||
25 | { |
||
26 | return call_user_func($this->callback, $runtime, $rootNode); |
||
27 | } |
||
28 | |||
29 | public function isDefinite(): bool |
||
32 | } |
||
33 | } |
||
34 |