class StringLength extends MetadataValidation

A validator to validate string lengths.

Methods

jsonSerialize()

No description

getPropertyKeys()

Gets the keys for all the properties of this object.

__construct(int $min, int $max)

Create a new instance with the given min and max.

Details

jsonSerialize()

string[] getPropertyKeys()

Gets the keys for all the properties of this object.

Return Value

string[]

__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