Required
Less than 1 minute
Required
class Required extends \Hazaar\Model\Attribute\BaseExtends: Hazaar\Model\Attribute\Base
Methods
evaluate
Evaluates whether the property value is not empty.
public evaluate(mixed $propertyValue, \ReflectionProperty $property): boolReturns: bool
Parameters
| 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) |
getReason
Returns a human-readable reason for attribute rule failure.
public getReason(): stringReturns: string
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:17 +0000