class Multiply extends NumberMutator (View source)

Multiply a number with a given multiplier.

Methods

__construct(float|int $multiplier)

No description

mixed
__invoke(mixed $value)

Mutate the input value.

from  Mutator
static Multiply
make(float|int $multiplier)

No description

mixed
mutate(mixed $value)

Mutate the input value.

float|int
mutateNumber(float|int $value)

No description

Details

__construct(float|int $multiplier)

No description

Parameters

float|int $multiplier

The multiplier to multiply with.

final mixed __invoke(mixed $value)

Mutate the input value.

Parameters

mixed $value

Return Value

mixed

static Multiply make(float|int $multiplier)

No description

Parameters

float|int $multiplier

The multiplier to multiply with.

Return Value

Multiply

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