isValid($value)) { $this->context->addViolation('The token provided is not valid anymore'); } } }