1 | <?php |
||
15 | class Tree |
||
16 | { |
||
17 | /** |
||
18 | * The parent CHM instance. |
||
19 | * |
||
20 | * @var CHM |
||
21 | */ |
||
22 | protected $chm; |
||
23 | |||
24 | /** |
||
25 | * List of Item instances children of this tree. |
||
26 | * |
||
27 | * @var Item[] |
||
28 | */ |
||
29 | protected $items; |
||
30 | |||
31 | /** |
||
32 | * Initializes the instance. |
||
33 | */ |
||
34 | protected function __construct(CHM $chm) |
||
39 | |||
40 | /** |
||
41 | * Get the items contained in this tree. |
||
42 | * |
||
43 | * @return Item[] |
||
44 | */ |
||
45 | public function getItems() |
||
49 | |||
50 | /** |
||
51 | * Resolve the items contained in other CHM files. |
||
52 | * |
||
53 | * @param Map $map |
||
54 | * |
||
55 | * @throws Exception Throw an Exception in case of errors. |
||
56 | */ |
||
57 | public function resolve(Map $map) |
||
71 | |||
72 | /** |
||
73 | * Create a new instance starting from an UL element. |
||
74 | * |
||
75 | * @param CHM $chm The parent CHM instance. |
||
76 | * @param DOMElement $ul The UL element to be parsed. |
||
77 | * |
||
78 | * @throws Exception Throw an Exception in case of errors. |
||
79 | * |
||
80 | * @return static |
||
81 | */ |
||
82 | public static function fromUL(CHM $chm, DOMElement $ul) |
||
93 | |||
94 | /** |
||
95 | * Create a new instance starting from the whole TOC/Index source 'HTML'. |
||
96 | * |
||
97 | * @param CHM $chm The parent CHM instance. |
||
98 | * @param string $data The contents of the .hhc/.hhk file. |
||
99 | * |
||
100 | * @throws Exception Throw an Exception in case of errors. |
||
101 | * |
||
102 | * @return static |
||
103 | */ |
||
104 | public static function fromString(CHM $chm, $data) |
||
145 | } |
||
146 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..