public function assert($input)
{
if ($this->validate($input)) {
return true;
}
$rule = $this->rule;
if ($rule instanceof AllOf) {
$rule = $this->absorbAllOf($rule, $input);
}
throw $rule->reportError($input)->setMode(ValidationException::MODE_NEGATIVE);
}