public function getIsExpired()
    {
        $createdAt = $this->getCreatedAt();
        if ($this->getExpiredAfter() === false || $createdAt === null) {
            return false;
        }
        if ($this->timeType == static::$timeTypeLocal) {
            return $this->getDatetimeOffset($this->offsetDatetime($this->currentDatetime(), -$this->getExpiredAfter()), $createdAt) > 0;
        } elseif ($this->timeType == static::$timeTypeUtc) {
            return $this->getDatetimeOffset($this->offsetDatetime($this->currentUtcDatetime(), -$this->getExpiredAfter()), $createdAt) > 0;
        }
        return false;
    }
public function getIsExpired()
    {
        $createdAt = $this->getCreatedAt();
        if ($this->getExpiredAfter() === false || $createdAt === null) {
            return false;
        }
        if ($this->timeType == static::$timeTypeLocal) {
            return $this->getDatetimeOffset($this->offsetDatetime($this->currentDatetime(), -$this->getExpiredAfter()), $createdAt) > 0;
        } elseif ($this->timeType == static::$timeTypeUtc) {
            return $this->getDatetimeOffset($this->offsetDatetime($this->currentUtcDatetime(), -$this->getExpiredAfter()), $createdAt) > 0;
        }
        return false;
    }
public function getIsExpired ( ) { $ createdAt = $ this -> getCreatedAt ( ) ; if ( $ this -> getExpiredAfter ( ) === false || $ createdAt === null ) { return false ; } if ( $ this -> timeType == static :: $ timeTypeLocal ) { return $ this -> getDatetimeOffset ( $ this -> offsetDatetime ( $ this -> currentDatetime ( ) , - $ this -> getExpiredAfter ( ) ) , $ createdAt ) > 0 ; } elseif ( $ this -> timeType == static :: $ timeTypeUtc ) { return $ this -> getDatetimeOffset ( $ this -> offsetDatetime ( $ this -> currentUtcDatetime ( ) , - $ this -> getExpiredAfter ( ) ) , $ createdAt ) > 0 ; } return false ; }
Check this entity whether expired.
This feature require creation time. If creation time didn't record, false
is returned.
This feature also need expiration duration. If expiration duration didn't
record, false is returned.
@return boolean
Check this entity whether expired . This feature require creation time . If creation time didn t record false is returned . This feature also need expiration duration . If expiration duration didn t record false is returned .