Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
20 | 2 | public function nested(string $path, \Closure $search, array $params = []) : Joining |
|
21 | { |
||
22 | 2 | $searchBuilder = app()->make(Search::class); |
|
23 | 2 | $search($searchBuilder); |
|
24 | |||
25 | 2 | return $this->append( |
|
26 | 2 | new NestedQuery( |
|
27 | 2 | $path, |
|
28 | 2 | $searchBuilder->getQuery(), |
|
29 | 2 | $params |
|
30 | ) |
||
66 |