public static function integer($value, $message = null, $propertyPath = null)
{
if (!is_int($value)) {
$message = sprintf($message ?: 'Value "%s" is not an integer.', static::stringify($value));
throw static::createException($value, $message, static::INVALID_INTEGER, $propertyPath);
}
return true;
}