AttributeRule
Less than 1 minute
AttributeRule
Methods
evaluate
Evaluate the attribute rule against the value.
public evaluate(mixed $value, \ReflectionProperty $property): boolParameters
| Parameter | Type | Description |
|---|---|---|
$value | mixed | |
$property | \ReflectionProperty |
serialize
Evaluate the attribute rule against the value when serializing.
public serialize(mixed $value, \ReflectionProperty $property, ?string $context): boolParameters
| Parameter | Type | Description |
|---|---|---|
$value | mixed | |
$property | \ReflectionProperty | |
$context | string |
getReason
Returns the reason to display if an attribute error occurs.
public getReason(): stringGenerated by Hazaar API Doc Generator on Sun, 01 Mar 2026 09:22:26 +0000