Total Complexity | 5 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
19 | class SubQuery implements FragmentInterface |
||
20 | { |
||
21 | private SelectQuery $query; |
||
22 | private string $alias; |
||
23 | |||
24 | public function __construct(SelectQuery $query, string $alias) |
||
28 | } |
||
29 | |||
30 | public function getType(): int |
||
31 | { |
||
32 | return CompilerInterface::SUBQUERY; |
||
33 | } |
||
34 | |||
35 | public function getTokens(): array |
||
36 | { |
||
37 | return \array_merge(['alias' => $this->alias], $this->query->getTokens()); |
||
38 | } |
||
39 | |||
40 | public function getQuery(): SelectQuery |
||
43 | } |
||
44 | |||
45 | public function __toString(): string |
||
55 |