class Subtract extends NumberMutator (View source)

Subtract a number from another number.

Methods

__construct(float|int $subtrahend)

No description

mixed
__invoke(mixed $value)

Mutate the input value.

from  Mutator
static Subtract
make(float|int $subtrahend)

No description

mixed
mutate(mixed $value)

Mutate the input value.

float|int
mutateNumber(float|int $value)

No description

Details

__construct(float|int $subtrahend)

No description

Parameters

float|int $subtrahend

The subtrahend to subtract.

final mixed __invoke(mixed $value)

Mutate the input value.

Parameters

mixed $value

Return Value

mixed

static Subtract make(float|int $subtrahend)

No description

Parameters

float|int $subtrahend

The subtrahend to subtract.

Return Value

Subtract

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