@@ -337,7 +337,7 @@ public function addNode(\DOMNode $node)
337
337
*
338
338
* @param int $position The position
339
339
*
340
- * @return Crawler A new instance of the Crawler with the selected node, or an empty Crawler if it does not exist
340
+ * @return self
341
341
*/
342
342
public function eq ($ position )
343
343
{
@@ -380,7 +380,7 @@ public function each(\Closure $closure)
380
380
* @param int $offset
381
381
* @param int $length
382
382
*
383
- * @return Crawler A Crawler instance with the sliced nodes
383
+ * @return self
384
384
*/
385
385
public function slice ($ offset = 0 , $ length = null )
386
386
{
@@ -394,7 +394,7 @@ public function slice($offset = 0, $length = null)
394
394
*
395
395
* @param \Closure $closure An anonymous function
396
396
*
397
- * @return Crawler A Crawler instance with the selected nodes
397
+ * @return self
398
398
*/
399
399
public function reduce (\Closure $ closure )
400
400
{
@@ -411,7 +411,7 @@ public function reduce(\Closure $closure)
411
411
/**
412
412
* Returns the first node of the current selection.
413
413
*
414
- * @return Crawler A Crawler instance with the first selected node
414
+ * @return self
415
415
*/
416
416
public function first ()
417
417
{
@@ -421,7 +421,7 @@ public function first()
421
421
/**
422
422
* Returns the last node of the current selection.
423
423
*
424
- * @return Crawler A Crawler instance with the last selected node
424
+ * @return self
425
425
*/
426
426
public function last ()
427
427
{
@@ -431,7 +431,7 @@ public function last()
431
431
/**
432
432
* Returns the siblings nodes of the current selection.
433
433
*
434
- * @return Crawler A Crawler instance with the sibling nodes
434
+ * @return self
435
435
*
436
436
* @throws \InvalidArgumentException When current node is empty
437
437
*/
@@ -447,7 +447,7 @@ public function siblings()
447
447
/**
448
448
* Returns the next siblings nodes of the current selection.
449
449
*
450
- * @return Crawler A Crawler instance with the next sibling nodes
450
+ * @return self
451
451
*
452
452
* @throws \InvalidArgumentException When current node is empty
453
453
*/
@@ -463,7 +463,7 @@ public function nextAll()
463
463
/**
464
464
* Returns the previous sibling nodes of the current selection.
465
465
*
466
- * @return Crawler A Crawler instance with the previous sibling nodes
466
+ * @return self
467
467
*
468
468
* @throws \InvalidArgumentException
469
469
*/
@@ -479,7 +479,7 @@ public function previousAll()
479
479
/**
480
480
* Returns the parents nodes of the current selection.
481
481
*
482
- * @return Crawler A Crawler instance with the parents nodes of the current selection
482
+ * @return self
483
483
*
484
484
* @throws \InvalidArgumentException When current node is empty
485
485
*/
@@ -504,7 +504,7 @@ public function parents()
504
504
/**
505
505
* Returns the children nodes of the current selection.
506
506
*
507
- * @return Crawler A Crawler instance with the children nodes
507
+ * @return self
508
508
*
509
509
* @throws \InvalidArgumentException When current node is empty
510
510
*/
@@ -637,7 +637,7 @@ public function extract($attributes)
637
637
*
638
638
* @param string $xpath An XPath expression
639
639
*
640
- * @return Crawler A new instance of Crawler with the filtered list of nodes
640
+ * @return self
641
641
*/
642
642
public function filterXPath ($ xpath )
643
643
{
@@ -658,7 +658,7 @@ public function filterXPath($xpath)
658
658
*
659
659
* @param string $selector A CSS selector
660
660
*
661
- * @return Crawler A new instance of Crawler with the filtered list of nodes
661
+ * @return self
662
662
*
663
663
* @throws \RuntimeException if the CssSelector Component is not available
664
664
*/
@@ -679,7 +679,7 @@ public function filter($selector)
679
679
*
680
680
* @param string $value The link 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 selectLink ($ value )
685
685
{
@@ -708,7 +708,7 @@ public function selectImage($value)
708
708
*
709
709
* @param string $value The button text
710
710
*
711
- * @return Crawler A new instance of Crawler with the filtered list of nodes
711
+ * @return self
712
712
*/
713
713
public function selectButton ($ value )
714
714
{
@@ -910,7 +910,7 @@ public static function xpathLiteral($s)
910
910
*
911
911
* @param string $xpath
912
912
*
913
- * @return Crawler
913
+ * @return self
914
914
*/
915
915
private function filterRelativeXPath ($ xpath )
916
916
{
0 commit comments