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