Class MaximumLengthValidator

Validate the length of a string

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

Methods summary

public
# __construct( integer $maximum_length )

MaximumLengthValidator constructor.

public integer
# getMaximumLength( )

Get the maximum length allowed

public
# setMaximumLength( integer $maximum_length )

Set the maximum length

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

Is this mixed value valid

Constants summary

integer E_TOO_LONG

Too long

# 1

Properties summary

protected $maximum_length
#