class WalkRecursive extends ArrayMutator (View source)

Apply a user function recursively to every member of an array

Methods

__construct(callable $callback)

No description

mixed
__invoke(mixed $value)

Mutate the input value.

from  Mutator
static WalkRecursive
make(callable $callback)

No description

mixed
mutate(mixed $value)

Mutate the input value.

array
mutateArray(array $array)

No description

Details

__construct(callable $callback)

No description

Parameters

callable $callback

The callback to use for mutation - Must accept the first parameter by reference

final mixed __invoke(mixed $value)

Mutate the input value.

Parameters

mixed $value

Return Value

mixed

static WalkRecursive make(callable $callback)

No description

Parameters

callable $callback

The callback to use for mutation - Must accept the first parameter by reference

Return Value

WalkRecursive

mixed mutate(mixed $value)

Mutate the input value.

Parameters

mixed $value

Return Value

mixed

protected array mutateArray(array $array)

No description

Parameters

array $array

Return Value

array