Class MinimumLengthValidator

Validate the length of a string

Concrete\Core\Validator\AbstractTranslatableValidator implements Concrete\Core\Validator\TranslatableValidatorInterface
Extended by Concrete\Core\Validator\String\MinimumLengthValidator
Namespace: Concrete\Core\Validator\String
Package: Concrete\Core\Validator\String
Located at src/Validator/String/MinimumLengthValidator.php

Methods summary

public
# __construct( integer $minimum_length )

MinimumLengthValidator constructor.

public integer
# getMinimumLength( )

Get the minimum length allowed

public
# setMinimumLength( integer $minimum_length )

Set the minimum length

public boolean
# isValid( mixed $mixed, ArrayAccess $error = null )

Is this mixed value valid

Constants summary

integer E_TOO_SHORT

Too short

# 1

Properties summary

protected $minimum_length
#