public static function minLength($value, $minLength, $message = null, $propertyPath = null, $encoding = 'utf8')
{
static::string($value, $message, $propertyPath);
if (mb_strlen($value, $encoding) < $minLength) {
$message = sprintf($message ?: 'Value "%s" is too short, it should have more than %d characters, but only has %d characters.', static::stringify($value), $minLength, mb_strlen($value, $encoding));
$constraints = array('min_length' => $minLength, 'encoding' => $encoding);
throw static::createException($value, $message, static::INVALID_MIN_LENGTH, $propertyPath, $constraints);
}
return true;
}