public function isInvitationTokenExpired()
    {
        if (!$this->invitationToken() instanceof UserToken) {
            throw new UserTokenNotFoundException();
        }

        return $this->invitationToken->isExpired(
            $this->invitationTokenLifetime()
        );
    }
public function isInvitationTokenExpired()
    {
        if (!$this->invitationToken() instanceof UserToken) {
            throw new UserTokenNotFoundException();
        }

        return $this->invitationToken->isExpired(
            $this->invitationTokenLifetime()
        );
    }
public function isInvitationTokenExpired ( ) { if ( ! $ this -> invitationToken ( ) instanceof UserToken ) { throw new UserTokenNotFoundException ( ) ; } return $ this -> invitationToken -> isExpired ( $ this -> invitationTokenLifetime ( ) ) ; }
Checks if the invitation token is expired or not.

@throws UserTokenNotFoundException when the invitation token does not exist

@return bool
Checks if the invitation token is expired or not .