public function isCredentialsNonExpired()
    {
        if (true === $this->credentialsExpired) {
            return false;
        }

        if (null !== $this->credentialsExpireAt && $this->credentialsExpireAt->getTimestamp() < time()) {
            return false;
        }

        return true;
    }
public function isCredentialsNonExpired()
    {
        if (true === $this->credentialsExpired) {
            return false;
        }

        if (null !== $this->credentialsExpireAt && $this->credentialsExpireAt->getTimestamp() < time()) {
            return false;
        }

        return true;
    }
public function isCredentialsNonExpired ( ) { if ( true === $ this -> credentialsExpired ) { return false ; } if ( null !== $ this -> credentialsExpireAt && $ this -> credentialsExpireAt -> getTimestamp ( ) < time ( ) ) { return false ; } return true ; }
Check if credentials is not expired

@return bool
Check if credentials is not expired