public function validate(ValidationData $data)
    {
        foreach ($this->getValidatableClaims() as $claim) {
            if (!$claim->validate($data)) {
                return false;
            }
        }

        return true;
    }
public function validate(ValidationData $data)
    {
        foreach ($this->getValidatableClaims() as $claim) {
            if (!$claim->validate($data)) {
                return false;
            }
        }

        return true;
    }
public function validate ( ValidationData $ data ) { foreach ( $ this -> getValidatableClaims ( ) as $ claim ) { if ( ! $ claim -> validate ( $ data ) ) { return false ; } } return true ; }
Validates if the token is valid

@param ValidationData $data

@return boolean
Validates if the token is valid