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.

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.

Parameters

string $path
bool $permanent
Closure|null $condition

at line 25
bool applies(object $data)

Determine if the definition applies to the current object.

Parameters

object $data

Return Value

bool

at line 33
PartialDefinition|null nested(string $property)

Resolve the definition for a nested property.

Parameters

string $property

Return Value

PartialDefinition|null

at line 52
array __serialize()

Get the serializable representation.

Return Value

array

at line 66
void __unserialize(array $data)

Restore the serialized definition.

Parameters

array $data

Return Value

void