Range
Less than 1 minute
Range
class Range extends \Hazaar\Model\Attribute\BaseProperties
minValue
The minimum value allowed for the property.
private int $minValuemaxValue
The maximum value allowed for the property.
private int $maxValueMethods
__construct
Constructor for the Range attribute.
public __construct(int $minValue, int $maxValue): voidParameters
| Parameter | Type | Description |
|---|---|---|
$minValue | int | the minimum value allowed for the property |
$maxValue | int | the maximum value allowed for the property |
evaluate
Ensures the property value is within the specified range.
public evaluate(mixed $propertyValue, \ReflectionProperty $property): boolParameters
| Parameter | Type | Description |
|---|---|---|
$propertyValue | mixed | the value of the property to evaluate (passed by reference) |
$property | \ReflectionProperty | the reflection property instance for metadata (passed by reference) |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:23 +0000