class After extends StringMutator (View source)

Retrieves the remainder of a string after a given substring.

Traits

Methods

__construct(string $search, bool $last = false)

No description

mixed
__invoke(mixed $value)

Mutate the input value.

from  Mutator
static After
first(string $search)

Retrieves the part of a string after the first occurrence of a given substring.

static After
last(string $search)

Retrieves the part of a string after the last occurrence of a given substring.

static After
make(string $search, bool $last = false)

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 $search, bool $last = false)

No description

Parameters

string $search

The substring to search for.

bool $last

Whether to search for the last occurrence of the substring (default: false).

final mixed __invoke(mixed $value)

Mutate the input value.

Parameters

mixed $value

Return Value

mixed

static After first(string $search)

Retrieves the part of a string after the first occurrence of a given substring.

Parameters

string $search

The substring to search for.

Return Value

After

static After last(string $search)

Retrieves the part of a string after the last occurrence of a given substring.

Parameters

string $search

The substring to search for.

Return Value

After

static After make(string $search, bool $last = false)

No description

Parameters

string $search

The substring to search for.

bool $last

Whether to search for the last occurrence of the substring (default: false).

Return Value

After

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