public function images()
    {
        $images = [];
        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;
    }
public function images()
    {
        $images = [];
        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;
    }
public function images ( ) { $ images = [ ] ; 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 ; }
Returns an array of Image objects for the nodes in the list.

@return Image[] An array of Image instances
Returns an array of Image objects for the nodes in the list .