1 | <?php |
||
7 | class TreeFactory |
||
8 | { |
||
9 | /** |
||
10 | * Create tree in strict mode. |
||
11 | * This will throw exception if index contains invalid references. |
||
12 | * e.g. parent reference to non-existing node |
||
13 | * |
||
14 | * @var bool |
||
15 | */ |
||
16 | private $strict = false; |
||
17 | |||
18 | private $index; |
||
19 | private $orphans; |
||
20 | private $roots; |
||
21 | |||
22 | 18 | public function __construct() |
|
28 | |||
29 | /** |
||
30 | * @param bool $strict |
||
31 | * @return $this |
||
32 | */ |
||
33 | public function strict($strict = true) |
||
39 | |||
40 | 18 | public function create(Transposable $transposable) |
|
84 | |||
85 | /** |
||
86 | * @param $parentId |
||
87 | * @param $entryNode |
||
88 | * @return mixed |
||
89 | */ |
||
90 | 18 | private function addAsChild($parentId, $entryNode) |
|
101 | |||
102 | /** |
||
103 | * @param $parentId |
||
104 | * @param $entryNode |
||
105 | * @return mixed |
||
106 | */ |
||
107 | 18 | private function addAsRoot($parentId, $entryNode) |
|
113 | |||
114 | /** |
||
115 | * @param $parentId |
||
116 | * @param $entryNode |
||
117 | */ |
||
118 | private function addOrphan($parentId, $entryNode) |
||
125 | } |
||
126 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.