src/Watson/Sitemap/Sitemap.php
public function addSitemap($location, $lastModified = null)
    {
        $sitemap = $location instanceof SitemapTag ? $location : new SitemapTag($location, $lastModified);

        $this->sitemaps[] = $sitemap;
    }
public function addSitemap($location, $lastModified = null)
    {
        $sitemap = $location instanceof SitemapTag ? $location : new SitemapTag($location, $lastModified);

        $this->sitemaps[] = $sitemap;
    }
public function addSitemap ( $ location , $ lastModified = null ) { $ sitemap = $ location instanceof SitemapTag ? $ location : new SitemapTag ( $ location , $ lastModified ) ; $ this -> sitemaps [ ] = $ sitemap ; }
Add new sitemap to the sitemaps index.

@param  \Watson\Sitemap\Tags\Sitemap|string  $location
@param  \DateTime|string  $lastModified
@return void
Add new sitemap to the sitemaps index .