RangeValidation
class RangeValidation implements ValidationInterface
RangeValidation class.
Takes optional min and max parameters and validates the range of a value.
Applicable to: - Integer - Number
Methods
__construct(float $min = null, float $max = null)
RangeValidation constructor.
float|null
getMin()
No description
setMin(float $min = null)
No description
float|null
getMax()
No description
setMax(float $max = null)
No description
static string[]
getValidFieldTypes()
Returns an array of allowed field types for the current validation.
jsonSerialize()
{@inheritdoc}
Details
at line 38
__construct(float $min = null, float $max = null)
RangeValidation constructor.
at line 47
float|null
getMin()
at line 55
RangeValidation
setMin(float $min = null)
at line 65
float|null
getMax()
at line 75
RangeValidation
setMax(float $max = null)
at line 85
static string[]
getValidFieldTypes()
Returns an array of allowed field types for the current validation.
at line 93
jsonSerialize()
{@inheritdoc}