Total Complexity | 6 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 10 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | trait HasRecursiveRelationships |
||
10 | { |
||
11 | use HasAdjacencyList; |
||
12 | use QueriesExpressions; |
||
13 | |||
14 | public function isParentOf(Model $model) |
||
15 | { |
||
16 | return $this->children->contains($model); |
||
17 | } |
||
18 | |||
19 | public function isChildOf(Model $model) |
||
22 | } |
||
23 | |||
24 | public function depthRelatedTo(Model $model) |
||
34 | } |
||
35 | } |
||
36 |