class EmailFilterGambit extends AbstractRegexGambit implements FilterInterface
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.
string
getFilterKey()
This filter will only be run when a query contains a filter param with this key.
Details
at
line 35
getGambitPattern()
The regex pattern to match the bit against.
at
line 23
bool
apply(SearchState $search, string $bit)
Apply conditions to the searcher for a bit of the search string.
in AbstractRegexGambit
at
line 39
protected array
match(string $bit)
Match the bit against this gambit.
at
line 43
protected mixed
conditions(SearchState $search, array $matches, bool $negate)
Apply conditions to the search, given that the gambit was matched.
at
line 48
string
getFilterKey()
This filter will only be run when a query contains a filter param with this key.
at
line 53
filter(FilterState $filterState, string $filterValue, bool $negate)
Filters a query.