Conditions | 3 |
Paths | 3 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | 32 | public function getLtreePath($mode = LTreeInterface::AS_ARRAY) |
|
34 | { |
||
35 | 32 | $path = $this->getAttribute($this->getLtreePathColumn()); |
|
36 | 32 | if ($mode === LTreeModelInterface::AS_ARRAY) { |
|
37 | 23 | return $path !== null ? explode(LTreeType::TYPE_SEPARATE, $path) : []; |
|
38 | } |
||
39 | 13 | return (string) $path; |
|
40 | } |
||
47 |