class GroupGambit extends AbstractRegexGambit
Properties
protected | $pattern | {@inheritdoc} |
|
|
protected GroupRepository | $groups |
|
Methods
bool
apply(AbstractSearch $search, string $bit)
Apply conditions to the searcher for a bit of the search string.
from AbstractRegexGambit
mixed
conditions(AbstractSearch $search, array $matches, bool $negate)
Apply conditions to the search, given that the gambit was matched.
Details
in AbstractRegexGambit
at
line 24
bool
apply(AbstractSearch $search, string $bit)
Apply conditions to the searcher for a bit of the search string.
in AbstractRegexGambit
at
line 41
protected array
match(string $bit)
Match the bit against this gambit.
at
line 42
protected mixed
conditions(AbstractSearch $search, array $matches, bool $negate)
Apply conditions to the search, given that the gambit was matched.
at
line 34
__construct(GroupRepository $groups)
at
line 73
protected array
extractGroupIdentifiers(array $matches)
Extract the group names from the pattern match.