StringLength
Constrains a string property’s length.
Backed by Quiote\Validator\StringValidator.
Synopsis
Section titled “Synopsis”final class StringLength
| Since | 1.0.0 |
| Source | Request/Attribute/Constraint/StringLength.php |
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
$max | ?``int | readonly. |
$message | ?``string | readonly. |
$min | ?``int | readonly. |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(?int $min = null, ?int $max = null, ?string $message = null): mixed
| Parameter | Type | Description |
|---|---|---|
$min | ?``int | |
$max | ?``int | |
$message | ?``string |
Returns mixed