Total Complexity | 8 |
Total Lines | 62 |
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 $source; |
||
17 | |||
18 | private $parser; |
||
19 | |||
20 | private $astTranslator; |
||
21 | |||
22 | public function __construct(string $source, ParserInterface $parser, QueryAstTranslatorInterface $astTranslator) |
||
23 | { |
||
24 | $this->source = $source; |
||
25 | $this->parser = $parser; |
||
26 | $this->astTranslator = $astTranslator; |
||
27 | } |
||
28 | |||
29 | public function __invoke(RuntimeInterface $runtime, NodeValueInterface $rootNode): ValueListInterface |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @return QueryCapabilitiesInterface |
||
36 | * @deprecated |
||
37 | */ |
||
38 | public function getProperties(): QueryCapabilitiesInterface |
||
41 | } |
||
42 | |||
43 | public function getCapabilities(): QueryCapabilitiesInterface |
||
44 | { |
||
45 | return $this |
||
46 | ->getLoadedQuery() |
||
47 | ->getCapabilities(); |
||
48 | } |
||
49 | |||
50 | public function getSource(): string |
||
51 | { |
||
52 | return $this->source; |
||
53 | } |
||
54 | |||
55 | private function getLoadedQuery(): QueryInterface |
||
62 | } |
||
63 | |||
64 | private function loadQuery(): QueryInterface |
||
75 |