original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Returns an array of Image objects for the nodes in the list.
  
  @return Image[] An array of Image instances
docstring_tokens: Returns an array of Image objects for the nodes in the list .