EvaluateOverrides
in package
Evaluates `overrides` property in the spec and returns the evaluated spec.
Table of Contents
- evaluate() : array<string|int, mixed>
- Evaluates the spec and returns a status.
- set_value_with_dot_notation() : mixed|stdClass
- Set a new value to $data with dot notation.
Methods
evaluate()
Evaluates the spec and returns a status.
public
evaluate(array<string|int, mixed> $spec[, array<string|int, mixed> $context = array() ]) : array<string|int, mixed>
Parameters
- $spec : array<string|int, mixed>
-
The spec to evaluate.
- $context : array<string|int, mixed> = array()
-
The context variables.
Return values
array<string|int, mixed> — The evaluated spec.set_value_with_dot_notation()
Set a new value to $data with dot notation.
public
set_value_with_dot_notation(mixed &$data, string $path, mixed $new_value) : mixed|stdClass
This is a slightly modified version of the simple dot notation to support objects.
Parameters
- $data : mixed
-
The data to update.
- $path : string
-
The path to the value to update.
- $new_value : mixed
-
The new value.