public function Crawler::previousAll in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dom-crawler/Crawler.php \Symfony\Component\DomCrawler\Crawler::previousAll()
Returns the previous sibling nodes of the current selection.
Return value
Crawler A Crawler instance with the previous sibling nodes
Throws
\InvalidArgumentException
File
- vendor/
symfony/ dom-crawler/ Crawler.php, line 456
Class
- Crawler
- Crawler eases navigation of a list of \DOMElement objects.
Namespace
Symfony\Component\DomCrawlerCode
public function previousAll() {
if (!count($this)) {
throw new \InvalidArgumentException('The current node list is empty.');
}
return $this
->createSubCrawler($this
->sibling($this
->getNode(0), 'previousSibling'));
}