NumberRangeValidator checks that a numerical value is in a given range.
More...
NumberRangeValidator checks that a numerical value is in a given range.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
◆ __construct()
Wikibase\Repo\Validators\NumberRangeValidator::__construct |
( |
| $min, |
|
|
| $max ) |
- Parameters
-
int | float | $min | |
int | float | $max | |
◆ setOptions()
Wikibase\Repo\Validators\NumberRangeValidator::setOptions |
( |
array | $options | ) |
|
- See also
- ValueValidator::setOptions()
- Parameters
-
◆ validate()
Wikibase\Repo\Validators\NumberRangeValidator::validate |
( |
| $value | ) |
|
- See also
- ValueValidator::validate()
- Parameters
-
int | float | $value | The numeric value to validate |
- Returns
- Result
◆ $max
Wikibase\Repo\Validators\NumberRangeValidator::$max |
|
private |
◆ $min
Wikibase\Repo\Validators\NumberRangeValidator::$min |
|
private |
The documentation for this class was generated from the following file: