@@ -320,7 +320,7 @@ public function serialize()
320
320
*
321
321
* @param int $position The position
322
322
*
323
- * @return Crawler A new instance of the Crawler with the selected node, or an empty Crawler if it does not exist
323
+ * @return self
324
324
*/
325
325
public function eq ($ position )
326
326
{
@@ -365,7 +365,7 @@ public function each(\Closure $closure)
365
365
* @param int $offset
366
366
* @param int $length
367
367
*
368
- * @return Crawler A Crawler instance with the sliced nodes
368
+ * @return self
369
369
*/
370
370
public function slice ($ offset = 0 , $ length = -1 )
371
371
{
@@ -379,7 +379,7 @@ public function slice($offset = 0, $length = -1)
379
379
*
380
380
* @param \Closure $closure An anonymous function
381
381
*
382
- * @return Crawler A Crawler instance with the selected nodes
382
+ * @return self
383
383
*/
384
384
public function reduce (\Closure $ closure )
385
385
{
@@ -396,7 +396,7 @@ public function reduce(\Closure $closure)
396
396
/**
397
397
* Returns the first node of the current selection.
398
398
*
399
- * @return Crawler A Crawler instance with the first selected node
399
+ * @return self
400
400
*/
401
401
public function first ()
402
402
{
@@ -406,7 +406,7 @@ public function first()
406
406
/**
407
407
* Returns the last node of the current selection.
408
408
*
409
- * @return Crawler A Crawler instance with the last selected node
409
+ * @return self
410
410
*/
411
411
public function last ()
412
412
{
@@ -416,7 +416,7 @@ public function last()
416
416
/**
417
417
* Returns the siblings nodes of the current selection.
418
418
*
419
- * @return Crawler A Crawler instance with the sibling nodes
419
+ * @return self
420
420
*
421
421
* @throws \InvalidArgumentException When current node is empty
422
422
*/
@@ -432,7 +432,7 @@ public function siblings()
432
432
/**
433
433
* Returns the next siblings nodes of the current selection.
434
434
*
435
- * @return Crawler A Crawler instance with the next sibling nodes
435
+ * @return self
436
436
*
437
437
* @throws \InvalidArgumentException When current node is empty
438
438
*/
@@ -448,7 +448,7 @@ public function nextAll()
448
448
/**
449
449
* Returns the previous sibling nodes of the current selection.
450
450
*
451
- * @return Crawler A Crawler instance with the previous sibling nodes
451
+ * @return self
452
452
*
453
453
* @throws \InvalidArgumentException
454
454
*/
@@ -464,7 +464,7 @@ public function previousAll()
464
464
/**
465
465
* Returns the parents nodes of the current selection.
466
466
*
467
- * @return Crawler A Crawler instance with the parents nodes of the current selection
467
+ * @return self
468
468
*
469
469
* @throws \InvalidArgumentException When current node is empty
470
470
*/
@@ -489,7 +489,7 @@ public function parents()
489
489
/**
490
490
* Returns the children nodes of the current selection.
491
491
*
492
- * @return Crawler A Crawler instance with the children nodes
492
+ * @return self
493
493
*
494
494
* @throws \InvalidArgumentException When current node is empty
495
495
*/
@@ -622,7 +622,7 @@ public function extract($attributes)
622
622
*
623
623
* @param string $xpath An XPath expression
624
624
*
625
- * @return Crawler A new instance of Crawler with the filtered list of nodes
625
+ * @return self
626
626
*/
627
627
public function filterXPath ($ xpath )
628
628
{
@@ -643,7 +643,7 @@ public function filterXPath($xpath)
643
643
*
644
644
* @param string $selector A CSS selector
645
645
*
646
- * @return Crawler A new instance of Crawler with the filtered list of nodes
646
+ * @return self
647
647
*
648
648
* @throws \RuntimeException if the CssSelector Component is not available
649
649
*/
@@ -664,7 +664,7 @@ public function filter($selector)
664
664
*
665
665
* @param string $value The link text
666
666
*
667
- * @return Crawler A new instance of Crawler with the filtered list of nodes
667
+ * @return self
668
668
*/
669
669
public function selectLink ($ value )
670
670
{
@@ -679,7 +679,7 @@ public function selectLink($value)
679
679
*
680
680
* @param string $value The button text
681
681
*
682
- * @return Crawler A new instance of Crawler with the filtered list of nodes
682
+ * @return self
683
683
*/
684
684
public function selectButton ($ value )
685
685
{
@@ -960,7 +960,7 @@ public function offsetGet($object)
960
960
*
961
961
* @param string $xpath
962
962
*
963
- * @return Crawler
963
+ * @return self
964
964
*/
965
965
private function filterRelativeXPath ($ xpath )
966
966
{
0 commit comments