audience = $audience; } public function assert(Token $token) { if (!$token->isPermittedFor($this->audience)) { throw new ConstraintViolation('The token is not allowed to be used by this audience'); } } }