abstract class AbstractRegexGambit implements GambitInterface
Methods
bool
apply(SearchState $search, string $bit)
Apply conditions to the searcher for a bit of the search string.
mixed
conditions(SearchState $search, array $matches, bool $negate)
Apply conditions to the search, given that the gambit was matched.
Details
at
line 17
abstract protected
getGambitPattern()
The regex pattern to match the bit against.
at
line 22
bool
apply(SearchState $search, string $bit)
Apply conditions to the searcher for a bit of the search string.
at
line 39
protected array
match(string $bit)
Match the bit against this gambit.
at
line 55
abstract protected mixed
conditions(SearchState $search, array $matches, bool $negate)
Apply conditions to the search, given that the gambit was matched.