Matches
class Matches extends StringComparator (View source)
Check if a string matches a regular expression pattern.
Traits
Methods
__construct(string $pattern)
No description
bool
checkString(string $value)
Compare the input string against the comparator.
Details
__construct(string $pattern)
No description
final bool
__invoke(mixed $value)
Compare the input value against the comparator.
final bool
check(mixed $value)
Compare the input string against the comparator.
protected bool
checkString(string $value)
Compare the input string against the comparator.
static Matches
make(string $pattern)
No description
protected string
resolveStringInput(mixed $value)
No description