final class PartialTree

Methods

static PartialTree|null
compile(array $paths)

Compile partial paths into one immutable tree.

bool
contains(string $property)

Determine if this tree contains a property endpoint or descendant.

bool
selects(string $property)

Determine if this tree selects a property at the current level.

child(string $property)

Get the nested selection for a property.

merge(PartialTree|null $other)

Merge another compiled selection into this tree.

Details

at line 28
static PartialTree|null compile(array $paths)

Compile partial paths into one immutable tree.

Parameters

array $paths

Return Value

PartialTree|null

at line 48
bool contains(string $property)

Determine if this tree contains a property endpoint or descendant.

Parameters

string $property

Return Value

bool

at line 56
bool selects(string $property)

Determine if this tree selects a property at the current level.

Parameters

string $property

Return Value

bool

at line 64
PartialTree|null child(string $property)

Get the nested selection for a property.

Parameters

string $property

Return Value

PartialTree|null

at line 82
PartialTree merge(PartialTree|null $other)

Merge another compiled selection into this tree.

Parameters

PartialTree|null $other

Return Value

PartialTree