Total Complexity | 6 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | final class LazyQuery implements QueryInterface |
||
12 | { |
||
13 | |||
14 | private $loadedQuery; |
||
15 | |||
16 | private $path; |
||
17 | |||
18 | private $parser; |
||
19 | |||
20 | private $astTranslator; |
||
21 | |||
22 | public function __construct(string $path, ParserInterface $parser, QueryAstTranslatorInterface $astTranslator) |
||
23 | { |
||
24 | $this->path = $path; |
||
25 | $this->parser = $parser; |
||
26 | $this->astTranslator = $astTranslator; |
||
27 | } |
||
28 | |||
29 | public function __invoke(RuntimeInterface $runtime, NodeValueInterface $rootNode): ValueListInterface |
||
32 | } |
||
33 | |||
34 | public function isDefinite(): bool |
||
35 | { |
||
36 | return $this |
||
37 | ->getLoadedQuery() |
||
38 | ->isDefinite(); |
||
39 | } |
||
40 | |||
41 | private function getLoadedQuery(): QueryInterface |
||
48 | } |
||
49 | |||
50 | private function loadQuery(): QueryInterface |
||
61 |