Only
Less than 1 minute
Only
class Only extends \Hazaar\Model\Attribute\BaseProperties
context
The context in which the property should be shown.
private array $contextMethods
__construct
public __construct(string $context): voidParameters
| Parameter | Type | Description |
|---|---|---|
$context | string | The context in which to hide the property |
serialize
Serializes the property value based on the given context.
public serialize(mixed $propertyValue, \ReflectionProperty $property, ?array $context): boolParameters
| Parameter | Type | Description |
|---|---|---|
$propertyValue | mixed | the value of the property to be serialized |
$property | \ReflectionProperty | the reflection property instance |
$context | array | the context(s) in which the serialization is taking place |
Generated by Hazaar API Doc Generator on Fri, 05 Jun 2026 06:08:14 +0000