Adldap\Models\User::isExpired PHP Method

isExpired() public method

Return true / false if the AD User is expired.
public isExpired ( DateTim\DateTime $date = null ) : boolean
$date DateTim\DateTime Optional date
return boolean
    public function isExpired(DateTime $date = null)
    {
        $date = $date ?: new DateTime();
        $expirationDate = $this->expirationDate();
        return $expirationDate ? $expirationDate <= $date : false;
    }