Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
25 | 5 | public function get($nodeId, bool $nested = false): array |
|
26 | { |
||
27 | 5 | $result = $this->getManipulator() |
|
28 | 5 | ->getAncestors($nodeId, $this->excludeFirstNLevel, $this->excludeLastNLevel); |
|
29 | |||
30 | 5 | return $nested ? |
|
31 | 5 | Utilities::flatToNested($result, $this->getManipulator()->getOptions()->getLevelColumnName()) : $result; |
|
32 | } |
||
53 |