src/Watson/Sitemap/Sitemap.php
public function addTag($location, $lastModified = null, $changeFrequency = null, $priority = null)
    {
        $tag = $location instanceof Tag ? $location : new Tag($location, $lastModified, $changeFrequency, $priority);

        $this->tags[] = $tag;

        return $tag;
    }
public function addTag($location, $lastModified = null, $changeFrequency = null, $priority = null)
    {
        $tag = $location instanceof Tag ? $location : new Tag($location, $lastModified, $changeFrequency, $priority);

        $this->tags[] = $tag;

        return $tag;
    }
public function addTag ( $ location , $ lastModified = null , $ changeFrequency = null , $ priority = null ) { $ tag = $ location instanceof Tag ? $ location : new Tag ( $ location , $ lastModified , $ changeFrequency , $ priority ) ; $ this -> tags [ ] = $ tag ; return $ tag ; }
Add a new sitemap tag to the sitemap.

@param  \Watson\Sitemap\Tags\Tag|string  $location
@param  \DateTime|string  $lastModified
@param  string  $changeFrequency
@param  string  $priority
@return \Watson\Sitemap\Tags\Tag
Add a new sitemap tag to the sitemap .