$matchRegexps
$matchRegexps
FilenameFilterIterator filters files by patterns (a regexp, a glob, or a string).
__construct(\Iterator $iterator, string[] $matchPatterns, string[] $noMatchPatterns) : mixed
\Iterator | $iterator | The Iterator to filter |
string[] | $matchPatterns | An array of patterns that need to match |
string[] | $noMatchPatterns | An array of patterns that need to not match |
isAccepted(string $string) : bool
Checks whether the string is accepted by the regex filters.
If there is no regexps defined in the class, this method will accept the string. Such case can be handled by child classes before calling the method if they want to apply a different behavior.
string | $string |