class Prepend extends StringMutator (View source)

Prepend a string to the value.

Traits

Methods

__construct(string $prepend)

No description

mixed
__invoke(mixed $value)

Mutate the input value.

from  Mutator
static Prepend
make(string $prepend)

No description

mixed
mutate(mixed $value)

Mutate the input value.

string
mutateString(string $value)

No description

string
resolveStringInput(mixed $value)

No description

Details

__construct(string $prepend)

No description

Parameters

string $prepend

The string to prepend.

final mixed __invoke(mixed $value)

Mutate the input value.

Parameters

mixed $value

Return Value

mixed

static Prepend make(string $prepend)

No description

Parameters

string $prepend

The string to prepend.

Return Value

Prepend

final mixed mutate(mixed $value)

Mutate the input value.

Parameters

mixed $value

Return Value

mixed

protected string mutateString(string $value)

No description

Parameters

string $value

Return Value

string

protected string resolveStringInput(mixed $value)

No description

Parameters

mixed $value

Return Value

string