@@ -324,7 +324,7 @@ public function serialize()
324
324
*
325
325
* @param int $position The position
326
326
*
327
- * @return Crawler A new instance of the Crawler with the selected node, or an empty Crawler if it does not exist
327
+ * @return self
328
328
*/
329
329
public function eq ($ position )
330
330
{
@@ -369,7 +369,7 @@ public function each(\Closure $closure)
369
369
* @param int $offset
370
370
* @param int $length
371
371
*
372
- * @return Crawler A Crawler instance with the sliced nodes
372
+ * @return self
373
373
*/
374
374
public function slice ($ offset = 0 , $ length = -1 )
375
375
{
@@ -383,7 +383,7 @@ public function slice($offset = 0, $length = -1)
383
383
*
384
384
* @param \Closure $closure An anonymous function
385
385
*
386
- * @return Crawler A Crawler instance with the selected nodes
386
+ * @return self
387
387
*/
388
388
public function reduce (\Closure $ closure )
389
389
{
@@ -400,7 +400,7 @@ public function reduce(\Closure $closure)
400
400
/**
401
401
* Returns the first node of the current selection.
402
402
*
403
- * @return Crawler A Crawler instance with the first selected node
403
+ * @return self
404
404
*/
405
405
public function first ()
406
406
{
@@ -410,7 +410,7 @@ public function first()
410
410
/**
411
411
* Returns the last node of the current selection.
412
412
*
413
- * @return Crawler A Crawler instance with the last selected node
413
+ * @return self
414
414
*/
415
415
public function last ()
416
416
{
@@ -420,7 +420,7 @@ public function last()
420
420
/**
421
421
* Returns the siblings nodes of the current selection.
422
422
*
423
- * @return Crawler A Crawler instance with the sibling nodes
423
+ * @return self
424
424
*
425
425
* @throws \InvalidArgumentException When current node is empty
426
426
*/
@@ -436,7 +436,7 @@ public function siblings()
436
436
/**
437
437
* Returns the next siblings nodes of the current selection.
438
438
*
439
- * @return Crawler A Crawler instance with the next sibling nodes
439
+ * @return self
440
440
*
441
441
* @throws \InvalidArgumentException When current node is empty
442
442
*/
@@ -452,7 +452,7 @@ public function nextAll()
452
452
/**
453
453
* Returns the previous sibling nodes of the current selection.
454
454
*
455
- * @return Crawler A Crawler instance with the previous sibling nodes
455
+ * @return self
456
456
*
457
457
* @throws \InvalidArgumentException
458
458
*/
@@ -468,7 +468,7 @@ public function previousAll()
468
468
/**
469
469
* Returns the parents nodes of the current selection.
470
470
*
471
- * @return Crawler A Crawler instance with the parents nodes of the current selection
471
+ * @return self
472
472
*
473
473
* @throws \InvalidArgumentException When current node is empty
474
474
*/
@@ -493,7 +493,7 @@ public function parents()
493
493
/**
494
494
* Returns the children nodes of the current selection.
495
495
*
496
- * @return Crawler A Crawler instance with the children nodes
496
+ * @return self
497
497
*
498
498
* @throws \InvalidArgumentException When current node is empty
499
499
*/
@@ -626,7 +626,7 @@ public function extract($attributes)
626
626
*
627
627
* @param string $xpath An XPath expression
628
628
*
629
- * @return Crawler A new instance of Crawler with the filtered list of nodes
629
+ * @return self
630
630
*/
631
631
public function filterXPath ($ xpath )
632
632
{
@@ -647,7 +647,7 @@ public function filterXPath($xpath)
647
647
*
648
648
* @param string $selector A CSS selector
649
649
*
650
- * @return Crawler A new instance of Crawler with the filtered list of nodes
650
+ * @return self
651
651
*
652
652
* @throws \RuntimeException if the CssSelector Component is not available
653
653
*/
@@ -666,7 +666,7 @@ public function filter($selector)
666
666
*
667
667
* @param string $value The link text
668
668
*
669
- * @return Crawler A new instance of Crawler with the filtered list of nodes
669
+ * @return self
670
670
*/
671
671
public function selectLink ($ value )
672
672
{
@@ -681,7 +681,7 @@ public function selectLink($value)
681
681
*
682
682
* @param string $value The button text
683
683
*
684
- * @return Crawler A new instance of Crawler with the filtered list of nodes
684
+ * @return self
685
685
*/
686
686
public function selectButton ($ value )
687
687
{
@@ -826,7 +826,7 @@ public static function xpathLiteral($s)
826
826
*
827
827
* @param string $xpath
828
828
*
829
- * @return Crawler
829
+ * @return self
830
830
*/
831
831
private function filterRelativeXPath ($ xpath )
832
832
{
0 commit comments