class Divide extends NumberMutator (View source)

Divides a number with a given divisor.

Methods

__construct(float|int $divisor)

No description

mixed
__invoke(mixed $value)

Mutate the input value.

from  Mutator
static Divide
make(float|int $divisor)

No description

mixed
mutate(mixed $value)

Mutate the input value.

float|int
mutateNumber(float|int $value)

No description

Details

__construct(float|int $divisor)

No description

Parameters

float|int $divisor

The divisor to divide with.

final mixed __invoke(mixed $value)

Mutate the input value.

Parameters

mixed $value

Return Value

mixed

static Divide make(float|int $divisor)

No description

Parameters

float|int $divisor

The divisor to divide with.

Return Value

Divide

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