| Total Complexity | 3 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | trait JoiningQueries |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var NestedQuery[] |
||
| 12 | */ |
||
| 13 | private $nested = []; |
||
| 14 | |||
| 15 | public function nested(string $path, callable $config = null): NestedQuery |
||
| 16 | { |
||
| 17 | $this->nested[] = $q = new NestedQuery($path); |
||
| 18 | |||
| 19 | if ($config) { |
||
| 20 | $config($q); |
||
| 21 | } |
||
| 22 | |||
| 23 | return $q; |
||
| 24 | } |
||
| 25 | |||
| 26 | protected function jsonSerializeJoiningQueries(): array |
||
| 30 | ); |
||
| 31 | } |
||
| 33 |