class Abs extends NumberMutator (View source)

Calculate the absolute value of a number.

Traits

Methods

mixed
__invoke(mixed $value)

Mutate the input value.

from  Mutator
static Makes
make()

Create a new instance of the class.

from  Makes
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

static Makes make()

Create a new instance of the class.

Return Value

Makes

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