Is your feature request related to a problem? Please describe.
When using the Validation class we have the ability to validate values to make sure they are of a numeric type, but we are missing options for validating if that value is also constrained in a certain range as well.
Describe the solution you'd like
To have new ValidationRules such as ValidationRules::MINIMUM_VALUE, ValidationRules::MAXIMUM_VALUE, ValidationRules::IN_RANGE
Is your feature request related to a problem? Please describe. When using the
Validation
class we have the ability to validate values to make sure they are of a numeric type, but we are missing options for validating if that value is also constrained in a certain range as well.Describe the solution you'd like To have new
ValidationRules
such asValidationRules::MINIMUM_VALUE
,ValidationRules::MAXIMUM_VALUE
,ValidationRules::IN_RANGE
Usage examples