Total Complexity | 6 |
Total Lines | 61 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
23 | trait AdjacencyTrait |
||
24 | { |
||
25 | /** |
||
26 | * AdjacencyTrait::$parentKey |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | public $parentKey = 'id_parent'; |
||
31 | |||
32 | /** |
||
33 | * AdjacencyTrait::$adjacency |
||
34 | * |
||
35 | * @var bool |
||
36 | */ |
||
37 | protected $adjacency = true; |
||
38 | |||
39 | // ------------------------------------------------------------------------ |
||
40 | |||
41 | /** |
||
42 | * AdjacencyTrait::getChilds |
||
43 | * |
||
44 | * @param int $idParent |
||
45 | * |
||
46 | * @return bool|\O2System\Framework\Models\Sql\DataObjects\Result |
||
47 | */ |
||
48 | public function getChilds($idParent) |
||
60 | } |
||
61 | |||
62 | // ------------------------------------------------------------------------ |
||
63 | |||
64 | /** |
||
65 | * AdjacencyTrait |
||
66 | * |
||
67 | * @param int $idParent |
||
68 | * |
||
69 | * @return bool |
||
70 | */ |
||
71 | public function hasChilds($idParent) |
||
84 | } |
||
85 | } |