Hide
Less than 1 minute
Hide
Properties
context
public string $context
Methods
__construct
Create a new Required rule.
public __construct(string $context): void
Parameters
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, ?string $context): bool
Parameters
Parameter | Type | Description |
---|---|---|
$propertyValue | mixed | the value of the property to be serialized |
$property | \ReflectionProperty | the reflection property instance |
$context | string | the context in which the serialization is taking place |
Generated by Hazaar API Doc Generator