PartialDefinition
class PartialDefinition
Methods
__construct(string $path, bool $permanent = false, Closure|null $condition = null)
Create a partial definition.
bool
applies(object $data)
Determine if the definition applies to the current object.
PartialDefinition|null
nested(string $property)
Resolve the definition for a nested property.
array
__serialize()
Get the serializable representation.
void
__unserialize(array $data)
Restore the serialized definition.
Details
at line 15
__construct(string $path, bool $permanent = false, Closure|null $condition = null)
Create a partial definition.
at line 25
bool
applies(object $data)
Determine if the definition applies to the current object.
at line 33
PartialDefinition|null
nested(string $property)
Resolve the definition for a nested property.
at line 52
array
__serialize()
Get the serializable representation.
at line 66
void
__unserialize(array $data)
Restore the serialized definition.