/** * Check whether a claims set is valid in the given context. * * @param ValidationContext $ctx Validation context * @return bool */ public function isValid(ValidationContext $ctx) { try { $ctx->validate($this); } catch (\RuntimeException $e) { return false; } return true; }