Min
Less than 1 minute
Min
class Min extends \Hazaar\Model\Attribute\BaseProperties
value
The minimum value allowed for the property.
private int $valueMethods
__construct
Constructor for the Min attribute.
public __construct(int $value): voidParameters
| Parameter | Type | Description |
|---|---|---|
$value | int | the minimum value that the property can be |
evaluate
Evaluates whether the property value is greater than or equal to the minimum allowed value.
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) |
getValue
Gets the minimum value allowed for the property.
public getValue(): intgetReason
Returns a human-readable reason for attribute rule failure.
public getReason(): stringGenerated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:23 +0000