1 | <?php |
||
9 | class DescendantQueryBuilder implements DescendantQueryBuilderInterface |
||
10 | { |
||
11 | private $adapter; |
||
12 | |||
13 | private $excludeFirstNLevel = 0; |
||
14 | private $limitDepth = null; |
||
15 | private $excludeBranch = null; |
||
16 | |||
17 | /** |
||
18 | * @param AdapterInterface $adapter |
||
19 | */ |
||
20 | 7 | public function __construct(AdapterInterface $adapter) |
|
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | 7 | public function get($nodeId): array |
|
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | 5 | public function excludeFirstNLevel(int $count): DescendantQueryBuilderInterface |
|
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | 4 | public function limitDepth(int $count): DescendantQueryBuilderInterface |
|
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | 1 | public function excludeBranch($nodeId): DescendantQueryBuilderInterface |
|
63 | |||
64 | 7 | private function getAdapter(): AdapterInterface |
|
68 | } |
||
69 |