src/Watson/Sitemap/Tags/ExpiredTag.php
public function setExpired($expired)
    {
        if ($expired instanceof DateTime) {
            $this->expired = $expired;
            return;
        } elseif ($expired instanceof Model) {
            $this->expired = $expired->deleted_at ?: $expired->updated_at;
            return;
        }

        $this->expired = new DateTime($expired);
    }
public function setExpired($expired)
    {
        if ($expired instanceof DateTime) {
            $this->expired = $expired;
            return;
        } elseif ($expired instanceof Model) {
            $this->expired = $expired->deleted_at ?: $expired->updated_at;
            return;
        }

        $this->expired = new DateTime($expired);
    }
public function setExpired ( $ expired ) { if ( $ expired instanceof DateTime ) { $ this -> expired = $ expired ; return ; } elseif ( $ expired instanceof Model ) { $ this -> expired = $ expired -> deleted_at ? : $ expired -> updated_at ; return ; } $ this -> expired = new DateTime ( $ expired ) ; }
Set the expiration date

@param  \DateTime|string  $expired
@return void
Set the expiration date