class Root extends NumberMutator (View source)

Calculate the root of a number.

Methods

__construct(float|int $root)

No description

mixed
__invoke(mixed $value)

Mutate the input value.

from  Mutator
static Root
cube()

No description

static Root
make(float|int $root)

No description

mixed
mutate(mixed $value)

Mutate the input value.

float|int
mutateNumber(float|int $value)

No description

static Root
square()

No description

Details

__construct(float|int $root)

No description

Parameters

float|int $root

The root to calculate.

final mixed __invoke(mixed $value)

Mutate the input value.

Parameters

mixed $value

Return Value

mixed

static Root cube()

No description

Return Value

Root

static Root make(float|int $root)

No description

Parameters

float|int $root

The root to calculate.

Return Value

Root

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 Root square()

No description

Return Value

Root