Total Complexity | 12 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class Finder |
||
13 | { |
||
14 | /** |
||
15 | * @var int |
||
16 | */ |
||
17 | private $id; |
||
18 | |||
19 | /** |
||
20 | * Finder constructor. |
||
21 | * |
||
22 | * @param $id |
||
23 | */ |
||
24 | public function __construct($id) |
||
25 | { |
||
26 | $this->id = $id; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Find node in tree by id. |
||
31 | * |
||
32 | * @throws ChildNotFoundException |
||
33 | * @throws ParentNotFoundException |
||
34 | * |
||
35 | * @return bool|AbstractNode |
||
36 | */ |
||
37 | public function find(AbstractNode $node) |
||
63 | } |
||
64 | } |
||
65 |