class Pow extends NumberMutator (View source)

Raise a number to a given exponent.

Methods

__construct(float|int $exponent)

No description

mixed
__invoke(mixed $value)

Mutate the input value.

from  Mutator
static Pow
cube()

No description

static Pow
make(float|int $exponent)

No description

mixed
mutate(mixed $value)

Mutate the input value.

float|int
mutateNumber(float|int $value)

No description

static Pow
square()

No description

Details

__construct(float|int $exponent)

No description

Parameters

float|int $exponent

The exponent to raise to.

final mixed __invoke(mixed $value)

Mutate the input value.

Parameters

mixed $value

Return Value

mixed

static Pow cube()

No description

Return Value

Pow

static Pow make(float|int $exponent)

No description

Parameters

float|int $exponent

The exponent to raise to.

Return Value

Pow

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

static Pow square()

No description

Return Value

Pow