@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | /** |
55 | 55 | * @param string|NodeList|\DOMNode $input |
56 | 56 | * |
57 | - * @return NodeList |
|
57 | + * @return \DOMWrap\NodeList |
|
58 | 58 | */ |
59 | 59 | protected function inputAsNodeList($input): NodeList { |
60 | 60 | $nodes = $this->inputPrepareAsTraversable($input); |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | /** |
87 | 87 | * @param string $html |
88 | 88 | * |
89 | - * @return NodeList |
|
89 | + * @return \DOMWrap\NodeList |
|
90 | 90 | */ |
91 | 91 | protected function nodesFromHtml($html): NodeList { |
92 | 92 | $class = get_class($this->document()); |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | /** |
122 | 122 | * @param string|null $selector |
123 | 123 | * |
124 | - * @return NodeList |
|
124 | + * @return \DOMWrap\NodeList |
|
125 | 125 | */ |
126 | 126 | public function detach(string $selector = null): NodeList { |
127 | 127 | if (!is_null($selector)) { |
@@ -468,7 +468,7 @@ discard block |
||
468 | 468 | } |
469 | 469 | |
470 | 470 | /** |
471 | - * @param Element $node |
|
471 | + * @param \DOMWrap\Element $node |
|
472 | 472 | * |
473 | 473 | * @return \SplStack |
474 | 474 | */ |
@@ -488,7 +488,7 @@ discard block |
||
488 | 488 | } |
489 | 489 | |
490 | 490 | /** |
491 | - * @param Element $node |
|
491 | + * @param \DOMWrap\Element $node |
|
492 | 492 | * |
493 | 493 | * @return \SplStack |
494 | 494 | */ |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | /** |
20 | 20 | * @param iterable $nodes |
21 | 21 | * |
22 | - * @return NodeList |
|
22 | + * @return \DOMWrap\NodeList |
|
23 | 23 | */ |
24 | 24 | public function newNodeList(iterable $nodes = null): NodeList { |
25 | 25 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * @param string $selector |
39 | 39 | * @param string $prefix |
40 | 40 | * |
41 | - * @return NodeList |
|
41 | + * @return \DOMWrap\NodeList |
|
42 | 42 | */ |
43 | 43 | public function find(string $selector, string $prefix = 'descendant::'): NodeList { |
44 | 44 | $converter = new CssSelectorConverter(); |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | /** |
50 | 50 | * @param string $xpath |
51 | 51 | * |
52 | - * @return NodeList |
|
52 | + * @return \DOMWrap\NodeList |
|
53 | 53 | */ |
54 | 54 | public function findXPath(string $xpath): NodeList { |
55 | 55 | $results = $this->newNodeList(); |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | * @param string|NodeList|\DOMNode|callable $input |
74 | 74 | * @param bool $matchType |
75 | 75 | * |
76 | - * @return NodeList |
|
76 | + * @return \DOMWrap\NodeList |
|
77 | 77 | */ |
78 | 78 | protected function getNodesMatchingInput($input, bool $matchType = true): NodeList { |
79 | 79 | if ($input instanceof NodeList || $input instanceof \DOMNode) { |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | /** |
123 | 123 | * @param string|NodeList|\DOMNode|callable $input |
124 | 124 | * |
125 | - * @return NodeList |
|
125 | + * @return \DOMWrap\NodeList |
|
126 | 126 | */ |
127 | 127 | public function not($input): NodeList { |
128 | 128 | return $this->getNodesMatchingInput($input, false); |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | /** |
132 | 132 | * @param string|NodeList|\DOMNode|callable $input |
133 | 133 | * |
134 | - * @return NodeList |
|
134 | + * @return \DOMWrap\NodeList |
|
135 | 135 | */ |
136 | 136 | public function filter($input): NodeList { |
137 | 137 | return $this->getNodesMatchingInput($input); |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | /** |
141 | 141 | * @param string|NodeList|\DOMNode|callable $input |
142 | 142 | * |
143 | - * @return NodeList |
|
143 | + * @return \DOMWrap\NodeList |
|
144 | 144 | */ |
145 | 145 | public function has($input): NodeList { |
146 | 146 | if ($input instanceof NodeList || $input instanceof \DOMNode) { |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | /** |
188 | 188 | * @param string|NodeList|\DOMNode|callable $selector |
189 | 189 | * |
190 | - * @return NodeList |
|
190 | + * @return \DOMWrap\NodeList |
|
191 | 191 | */ |
192 | 192 | public function precedingAll($selector = null): NodeList { |
193 | 193 | return $this->precedingUntil(null, $selector); |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | * @param string|NodeList|\DOMNode|callable $input |
198 | 198 | * @param string|NodeList|\DOMNode|callable $selector |
199 | 199 | * |
200 | - * @return NodeList |
|
200 | + * @return \DOMWrap\NodeList |
|
201 | 201 | */ |
202 | 202 | public function precedingUntil($input = null, $selector = null): NodeList { |
203 | 203 | return $this->_walkPathUntil('previousSibling', $input, $selector); |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | /** |
216 | 216 | * @param string|NodeList|\DOMNode|callable $selector |
217 | 217 | * |
218 | - * @return NodeList |
|
218 | + * @return \DOMWrap\NodeList |
|
219 | 219 | */ |
220 | 220 | public function followingAll($selector = null): NodeList { |
221 | 221 | return $this->followingUntil(null, $selector); |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | * @param string|NodeList|\DOMNode|callable $input |
226 | 226 | * @param string|NodeList|\DOMNode|callable $selector |
227 | 227 | * |
228 | - * @return NodeList |
|
228 | + * @return \DOMWrap\NodeList |
|
229 | 229 | */ |
230 | 230 | public function followingUntil($input = null, $selector = null): NodeList { |
231 | 231 | return $this->_walkPathUntil('nextSibling', $input, $selector); |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | /** |
235 | 235 | * @param string|NodeList|\DOMNode|callable $selector |
236 | 236 | * |
237 | - * @return NodeList |
|
237 | + * @return \DOMWrap\NodeList |
|
238 | 238 | */ |
239 | 239 | public function siblings($selector = null): NodeList { |
240 | 240 | $results = $this->collection()->reduce(function($carry, $node) use ($selector) { |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | /** |
252 | 252 | * NodeList is only array like. Removing items using foreach() has undesired results. |
253 | 253 | * |
254 | - * @return NodeList |
|
254 | + * @return \DOMWrap\NodeList |
|
255 | 255 | */ |
256 | 256 | public function children(): NodeList { |
257 | 257 | $results = $this->collection()->reduce(function($carry, $node) { |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | /** |
291 | 291 | * @param string $selector |
292 | 292 | * |
293 | - * @return NodeList |
|
293 | + * @return \DOMWrap\NodeList |
|
294 | 294 | */ |
295 | 295 | public function parents(string $selector = null): NodeList { |
296 | 296 | return $this->parentsUntil(null, $selector); |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | * @param string|NodeList|\DOMNode|callable $input |
301 | 301 | * @param string|NodeList|\DOMNode|callable $selector |
302 | 302 | * |
303 | - * @return NodeList |
|
303 | + * @return \DOMWrap\NodeList |
|
304 | 304 | */ |
305 | 305 | public function parentsUntil($input = null, $selector = null): NodeList { |
306 | 306 | return $this->_walkPathUntil('parentNode', $input, $selector); |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | /** |
344 | 344 | * NodeList is only array like. Removing items using foreach() has undesired results. |
345 | 345 | * |
346 | - * @return NodeList |
|
346 | + * @return \DOMWrap\NodeList |
|
347 | 347 | */ |
348 | 348 | public function contents(): NodeList { |
349 | 349 | $results = $this->collection()->reduce(function($carry, $node) { |
@@ -360,7 +360,7 @@ discard block |
||
360 | 360 | /** |
361 | 361 | * @param string|NodeList|\DOMNode $input |
362 | 362 | * |
363 | - * @return NodeList |
|
363 | + * @return \DOMWrap\NodeList |
|
364 | 364 | */ |
365 | 365 | public function add($input): NodeList { |
366 | 366 | $nodes = $this->inputAsNodeList($input); |
@@ -385,7 +385,7 @@ discard block |
||
385 | 385 | * @param string|NodeList|\DOMNode|callable $selector |
386 | 386 | * @param int $matchType |
387 | 387 | * |
388 | - * @return NodeList |
|
388 | + * @return \DOMWrap\NodeList |
|
389 | 389 | */ |
390 | 390 | protected function _buildNodeListUntil(\DOMNode $baseNode, string $property, $input = null, $selector = null, int $matchType = null): NodeList { |
391 | 391 | $resultNodes = $this->newNodeList(); |
@@ -420,7 +420,7 @@ discard block |
||
420 | 420 | /** |
421 | 421 | * @param iterable $nodeLists |
422 | 422 | * |
423 | - * @return NodeList |
|
423 | + * @return \DOMWrap\NodeList |
|
424 | 424 | */ |
425 | 425 | protected function _uniqueNodes(iterable $nodeLists): NodeList { |
426 | 426 | $resultNodes = $this->newNodeList(); |
@@ -446,7 +446,7 @@ discard block |
||
446 | 446 | * @param string|NodeList|\DOMNode|callable $selector |
447 | 447 | * @param int $matchType |
448 | 448 | * |
449 | - * @return NodeList |
|
449 | + * @return \DOMWrap\NodeList |
|
450 | 450 | */ |
451 | 451 | protected function _walkPathUntil(string $property, $input = null, $selector = null, int $matchType = null): NodeList { |
452 | 452 | $nodeLists = []; |