class StringLength extends MetadataValidation

A validator to validate string lengths.

Methods

__construct(int $min, int $max)

Create a new instance with the given min and max.

Details

__construct(int $min, int $max)

Create a new instance with the given min and max.

Parameters

Name Type Description
$min int Minimum valid string length.
$max int Maximum valid string length.

Constants

STRLEN