class DumpDie extends Mutator (View source)

Allows you to dump the value inside a chain of mutators for inspection while developing. Kills the script afterwards.

Uses the dd function if available, otherwise falls back to var_dump and exit(1).

Methods

__construct(mixed ...$args)

No description

mixed
__invoke(mixed $value)

Mutate the input value.

from  Mutator
static DumpDie
make(mixed ...$args)

No description

mixed
mutate(mixed $value)

Mutate the input value.

Details

__construct(mixed ...$args)

No description

Parameters

mixed ...$args

Arguments to pass to the dump function after the value.

final mixed __invoke(mixed $value)

Mutate the input value.

Parameters

mixed $value

Return Value

mixed

static DumpDie make(mixed ...$args)

No description

Parameters

mixed ...$args

Arguments to pass to the dump function after the value.

Return Value

DumpDie

mixed mutate(mixed $value)

Mutate the input value.

Parameters

mixed $value

Return Value

mixed