class MergedArrayTree (View source)

Methods

__construct(array $tree = [])

No description

static bool
pathIsPrototype(array $path)

No description

static array
getParentPath(array $path)

No description

array
getTree()

No description

void
removeValueInTree(array $path)

No description

void
copyValueInTree(array $targetPath, array $sourcePath)

No description

void
setValueInTree(array $path, scalar|null|array $value)

No description

static void
arraySetOrMergeValueByPathWithCallback(array $subject, array $path, $value, callable $toArray)

No description

void
buildPrototypeHierarchy()

Precalculate merged configuration for inherited prototypes.

Details

__construct(array $tree = [])

No description

Parameters

array $tree

static bool pathIsPrototype(array $path)

No description

Parameters

array $path

Return Value

bool

static array getParentPath(array $path)

No description

Parameters

array $path

Return Value

array

array getTree()

No description

Return Value

array

void removeValueInTree(array $path)

No description

Parameters

array $path

Return Value

void

void copyValueInTree(array $targetPath, array $sourcePath)

No description

Parameters

array $targetPath
array $sourcePath

Return Value

void

void setValueInTree(array $path, scalar|null|array $value)

No description

Parameters

array $path
scalar|null|array $value

The value to assign, either a scalar type or an array with __eelExpression etc.

Return Value

void

static protected void arraySetOrMergeValueByPathWithCallback(array $subject, array $path, $value, callable $toArray)

No description

Parameters

array $subject
array $path
$value
callable $toArray

Return Value

void

void buildPrototypeHierarchy()

Precalculate merged configuration for inherited prototypes.

Return Value

void

Exceptions

Exception