MatcherInterface
interface MatcherInterface
Methods
array
getMatchers()
Return the matchers configuration
Details
at line 28
array
getMatchers()
Return the matchers configuration
Match name as key. Can be prefixed with a colon-separated list of groups, e.g. "Group:Name". Value must be a string or an array with the following elements:
- regexp: the regular expression used to match input.
- order: used to sort matchers. Defaults to 0.
- groups: list of groups this match belongs to. Defaults to an empty array.
- callback: called with the matched strings. Defaults to [$this, "parseX"] where X is the match name.
If the config is a string, the string is used for the "regexp" element.