matches() matches(string $path) : boolean Does the given path match one of the regular expression patterns? Parameters string $path The file path. Returns boolean — True if one of the pattern matches.
_prepare() _prepare(string $patterns) Prepares the list of patterns from the input. Parameters string $patterns The patterns.
_getRegExpableSearchString() _getRegExpableSearchString(string $s) : string Converts $s into a string that can be used with preg_match. Parameters string $s String with wildcards ? and *. Returns string — Search string converted to ., ? to ., etc.