public function addImage( $key, $location, $caption = '', $geolocation = '', $title = '', $license = '' )
    {
        /**
         * @var \Lti\Sitemap\SitemapUrl $node
         */
        $node = $this->get( $key );
        if ( ! is_null( $node )) {
            $node->addImage( new SitemapImage( $location, $caption, $geolocation, $title, $license ) );
            $this->hasImages = true;
        }
    }
public function addImage( $key, $location, $caption = '', $geolocation = '', $title = '', $license = '' )
    {
        /**
         * @var \Lti\Sitemap\SitemapUrl $node
         */
        $node = $this->get( $key );
        if ( ! is_null( $node )) {
            $node->addImage( new SitemapImage( $location, $caption, $geolocation, $title, $license ) );
            $this->hasImages = true;
        }
    }
public function addImage ( $ key , $ location , $ caption = '' , $ geolocation = '' , $ title = '' , $ license = '' ) { /**
         * @var \Lti\Sitemap\SitemapUrl $node
         */ $ node = $ this -> get ( $ key ) ; if ( ! is_null ( $ node ) ) { $ node -> addImage ( new SitemapImage ( $ location , $ caption , $ geolocation , $ title , $ license ) ) ; $ this -> hasImages = true ; } }
Adding an image at a specific index in our array of SitemapUrls

@param int $key
@param $location
@param string $caption
@param string $geolocation
@param string $title
@param string $license
Adding an image at a specific index in our array of SitemapUrls