@@ -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
*/
@@ -667,7 +667,7 @@ public function extract($attributes)
667
667
*
668
668
* @param string $xpath An XPath expression
669
669
*
670
- * @return Crawler A new instance of Crawler with the filtered list of nodes
670
+ * @return self
671
671
*/
672
672
public function filterXPath ($ xpath )
673
673
{
@@ -688,7 +688,7 @@ public function filterXPath($xpath)
688
688
*
689
689
* @param string $selector A CSS selector
690
690
*
691
- * @return Crawler A new instance of Crawler with the filtered list of nodes
691
+ * @return self
692
692
*
693
693
* @throws \RuntimeException if the CssSelector Component is not available
694
694
*/
@@ -709,7 +709,7 @@ public function filter($selector)
709
709
*
710
710
* @param string $value The link text
711
711
*
712
- * @return Crawler A new instance of Crawler with the filtered list of nodes
712
+ * @return self
713
713
*/
714
714
public function selectLink ($ value )
715
715
{
@@ -738,7 +738,7 @@ public function selectImage($value)
738
738
*
739
739
* @param string $value The button text
740
740
*
741
- * @return Crawler A new instance of Crawler with the filtered list of nodes
741
+ * @return self
742
742
*/
743
743
public function selectButton ($ value )
744
744
{
@@ -940,7 +940,7 @@ public static function xpathLiteral($s)
940
940
*
941
941
* @param string $xpath
942
942
*
943
- * @return Crawler
943
+ * @return self
944
944
*/
945
945
private function filterRelativeXPath ($ xpath )
946
946
{
0 commit comments