class Add extends NumberMutator (View source)

Add a number to a numeric value.

Methods

__construct(float|int $addend)

No description

mixed
__invoke(mixed $value)

Mutate the input value.

from  Mutator
static Add
make(float|int $addend)

No description

mixed
mutate(mixed $value)

Mutate the input value.

float|int
mutateNumber(float|int $value)

No description

Details

__construct(float|int $addend)

No description

Parameters

float|int $addend

The addend to add.

final mixed __invoke(mixed $value)

Mutate the input value.

Parameters

mixed $value

Return Value

mixed

static Add make(float|int $addend)

No description

Parameters

float|int $addend

The addend to add.

Return Value

Add

mixed mutate(mixed $value)

Mutate the input value.

Parameters

mixed $value

Return Value

mixed

protected float|int mutateNumber(float|int $value)

No description

Parameters

float|int $value

Return Value

float|int