Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | interface RecursiveQueryInterface |
||
12 | { |
||
13 | /** |
||
14 | * Get all ancestors of a term |
||
15 | * |
||
16 | * @param int $id The term ID |
||
17 | * @return \Illuminate\Support\Collection |
||
18 | */ |
||
19 | public function getAncestry($id); |
||
20 | |||
21 | /** |
||
22 | * Get all descendants of a term |
||
23 | * |
||
24 | * @param int $id The term ID |
||
25 | * @return \Illuminate\Support\Collection |
||
26 | */ |
||
27 | public function getDescent($id); |
||
28 | } |
||
29 |