RecursiveQueryInterface
last analyzed

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 18
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
getAncestry() 0 1 ?
getDescent() 0 1 ?
1
<?php
2
3
/**
4
 * Interface for classes making recursive queries.
5
 */
6
namespace Rocket\Taxonomy\Utils;
7
8
/**
9
 * Interface for classes making recursive queries.
10
 */
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