| 1 | <?php |
||
| 13 | class CheckRange extends CheckFloat |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var int|float |
||
| 17 | */ |
||
| 18 | private $min; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var int|float |
||
| 22 | */ |
||
| 23 | private $max; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param int|float $min min value |
||
| 27 | * @param int|float $max max value |
||
| 28 | * @param string|null $error optional custom error message |
||
| 29 | */ |
||
| 30 | 3 | public function __construct($min, $max, $error = null) |
|
| 37 | |||
| 38 | 1 | public function validate(FieldInterface $field, InputModel $model, InputValidation $validation) |
|
| 59 | } |
||
| 60 |