Symfony\Component\DomCrawler\Crawler::images PHP Méthode

images() public méthode

Returns an array of Image objects for the nodes in the list.
public images ( ) : Symfony\Component\DomCrawler\Image[]
Résultat Symfony\Component\DomCrawler\Image[] An array of Image instances
    public function images()
    {
        $images = array();
        foreach ($this as $node) {
            if (!$node instanceof \DOMElement) {
                throw new \InvalidArgumentException(sprintf('The current node list should contain only DOMElement instances, "%s" found.', get_class($node)));
            }
            $images[] = new Image($node, $this->baseHref);
        }
        return $images;
    }