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