Field must be a number greater than [or equal to] X.

@param numeric $limit
@param bool $include Whether to include limit value.
@param string $message
@return FormValidator
762550
public function min($limit, $include = TRUE, $message = null)
    {
        $this->setRule(__FUNCTION__, function($val, $args)
                       {
                           if (strlen($val) === 0) {
                               return TRUE;
                           }

                           $val = (float) $val;
                           $limit = (float) $args[0];
                           $inc = (bool) $args[1];

                           return ($val > $limit || ($inc === TRUE && $val === $limit));
                       }, $message, array($limit, $include));
        return $this;
    }
195104
public static Validation<Integer> greaterThan(int min, String msg) {
        return SimpleValidation.from((i) -> i > min, format(msg, min));
    }
507529
public function validate0100(MessageInterface $message, &$reason = "")
    {
        if (self::isEmpty($message->getHost())) {
            $reason = "host not set";

            return false;
        }

        if (self::isEmpty($message->getShortMessage())) {
            $reason = "short-message not set";

            return false;
        }

        if (self::isEmpty($message->getVersion())) {
            $reason = "version not set";

            return false;
        }

        if ($message->hasAdditional('id')) {
            $reason = "additional field 'id' is not allowed";

            return false;
        }

        return true;
    }
260405
public function minlength($len, $message = null)
    {
        $this->setRule(__FUNCTION__, function($val, $args)
                       {
                           return !(strlen(trim($val)) < $args[0]);
                       }, $message, array($len));
        return $this;
    }
263970
public function message($message)
    {
        if (isset($this->currentRule)) {
            static::$messages[$this->input.'.'.$this->currentRule] = $message;
        }

        return $this;
    }
468164
protected function filterRegexp($field, $details, $label, $message) {
        if (preg_match($details['expression'], $this->getValue($field))) {
            return true;
        }
        throw new \Exception($message ? $message : $this->translate("Doesn't match expression!"));
    }
1260481
private function getMessageLineCount($message)
    {
        $messageLength = FormatterHelper::strlenWithoutDecoration($this->output->getFormatter(), $message);

        return ceil($messageLength / $this->getTerminalWidth());
    }
677235
public static function error_handler($number, $message, $file, $line)
    {
        $msg = "$message in $file on line $line";
        if (($number !== E_NOTICE) && ($number < 2048)) {
            self::errorMessage($msg, true);
            self::customErrorMsg();
        }
        return 0;
    }
91931
public function betweenlength($minlength, $maxlength, $message = null)
    {
        $message = empty($message) ? self::getDefaultMessage(__FUNCTION__, array($minlength, $maxlength)) : NULL;

        $this->minlength($minlength, $message)->max($maxlength, $message);
        return $this;
    }
241663
protected function isValidMessage($message): Message
    {
        if ($message instanceof Message) {
            return $message;
        }

        if (\is_string($message) || $message instanceof Attachment) {
            return Message::create($message);
        }

        throw new MessengerException(sprintf(
            'message must be a string or an instance of %s or %s.',
            Message::class,
            Attachment::class
        ));
    }
631683
public static function assertNumberNotInRange($lowerBoundary, $upperBoundary, $actual, string $message = '')
    {
        self::assertNumberRangeMatch($lowerBoundary, $upperBoundary, $actual, $message, 'assertNumberNotInRange', false, true);
    }
860977
protected function addElementError($message)
    {
        if ($this->element === null) {
            throw new \RuntimeException('Create a form element prior to adding a validation error', 1519731421);
        }
        $this->addError($this->element->getIdentifier(), $message);
    }
1342746
public function mixin($ruleName, $validator, $message = '')
	{
        if ( ! empty($message))
        {
            $this->messages[$ruleName] = $message;
        }
        Validator::extend($ruleName, $validator);

		return $this;
	}
1110808
public function setValidator(string $name, callable $callback, string $message = ''): self
    {
        if ($name = \trim($name)) {
            $this->_validators[$name] = $callback;

            if ($message) {
                $this->setMessage($name, $message);
            }
        }

        return $this;
    }
1139861
public static function isNullOrNumeric($value, $message = null)
    {
        if (!is_null($value) && !is_numeric($value)) {
            throw new InvalidArgumentException(sprintf(
                $message ?: 'Expected null or numeric, but got %s',
                Helper::typeToString($value)
            ));
        }
    }
422349
public static Validation<Integer> lowerThan(int max, String msg) {
        return SimpleValidation.from((i) -> i < max, format(msg, max));
    }
94227
function ruleSize($value, $error_message = null) {
        if (!is_numeric($value)) {
            throw new \Exception('Incorrect parameter VALUE in rule size');
        }

        return $this->_rule('size:' . $value, $error_message);
    }