src/Watson/Sitemap/Tags/BaseTag.php
public function setLastModified($lastModified)
    {
        if ($lastModified instanceof DateTime) {
            $this->lastModified = $lastModified;
            return;
        } elseif ($lastModified instanceof Model) {
            $this->lastModified = $lastModified->updated_at;
            return;
        }

        $this->lastModified = new DateTime($lastModified);
    }
public function setLastModified($lastModified)
    {
        if ($lastModified instanceof DateTime) {
            $this->lastModified = $lastModified;
            return;
        } elseif ($lastModified instanceof Model) {
            $this->lastModified = $lastModified->updated_at;
            return;
        }

        $this->lastModified = new DateTime($lastModified);
    }
public function setLastModified ( $ lastModified ) { if ( $ lastModified instanceof DateTime ) { $ this -> lastModified = $ lastModified ; return ; } elseif ( $ lastModified instanceof Model ) { $ this -> lastModified = $ lastModified -> updated_at ; return ; } $ this -> lastModified = new DateTime ( $ lastModified ) ; }
Set the last modified timestamp.

@param  \DateTime|string  $lastModified
@return void
Set the last modified timestamp .