abstract class NumberMutator extends Mutator (View source)

Methods

mixed
__invoke(mixed $value)

Mutate the input value.

from  Mutator
mixed
mutate(mixed $value)

Mutate the input value.

float|int
mutateNumber(float|int $value)

No description

Details

final mixed __invoke(mixed $value)

Mutate the input value.

Parameters

mixed $value

Return Value

mixed

mixed mutate(mixed $value)

Mutate the input value.

Parameters

mixed $value

Return Value

mixed

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

No description

Parameters

float|int $value

Return Value

float|int