AttributeRule
Less than 1 minute
AttributeRule
Methods
evaluate
Evaluate the attribute rule against the value.
public evaluate(mixed $value, \ReflectionProperty $property): bool
Parameters
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): bool
Parameters
Parameter | Type | Description |
---|---|---|
$value | mixed | |
$property | \ReflectionProperty | |
$context | string |
Generated by Hazaar API Doc Generator