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 Wed, 07 Jan 2026 11:29:59 +0000