public function validate($value, $params = [], $throw = false)
{
$cmp = $params[0];
if ($value < $cmp) {
return true;
}
$message = 'Value must be less than %s';
if ($throw) {
throw new ValidationException($message, $cmp);
}
return sprintf($message, $cmp);
}