abstract class StringComparator extends Comparator (View source)

Traits

Methods

bool
__invoke(mixed $value)

Compare the input value against the comparator.

bool
check(mixed $value)

Compare the input string against the comparator.

bool
checkString(string $value)

Compare the input string against the comparator.

string
resolveStringInput(mixed $value)

No description

Details

final bool __invoke(mixed $value)

Compare the input value against the comparator.

Parameters

mixed $value

Return Value

bool

final bool check(mixed $value)

Compare the input string against the comparator.

Parameters

mixed $value

Return Value

bool

abstract protected bool checkString(string $value)

Compare the input string against the comparator.

Parameters

string $value

Return Value

bool

protected string resolveStringInput(mixed $value)

No description

Parameters

mixed $value

Return Value

string