1 | <?php |
||
9 | class AncestorQueryBuilder implements AncestorQueryBuilderInterface |
||
10 | { |
||
11 | private $adapter; |
||
12 | |||
13 | private $excludeFirstNLevel = 0; |
||
14 | private $excludeLastLevel = false; |
||
15 | |||
16 | /** |
||
17 | * @param AdapterInterface $adapter |
||
18 | */ |
||
19 | 4 | public function __construct(AdapterInterface $adapter) |
|
23 | |||
24 | 4 | public function get($nodeId): array |
|
29 | |||
30 | 1 | public function excludeFistNLevel(int $count): AncestorQueryBuilderInterface |
|
36 | |||
37 | 2 | public function excludeLastLevel(): AncestorQueryBuilderInterface |
|
43 | |||
44 | 4 | private function getAdapter(): AdapterInterface |
|
48 | } |
||
49 |