GrumPHP\Collection\FilesCollection::notName PHP Method

notName() public method

You can use patterns (delimited with / sign), globs or simple strings. $collection->name('*.php') $collection->name('/\.php$/') // same as above $collection->name('test.php')
public notName ( string $pattern ) : FilesCollection
$pattern string A pattern (a regexp, a glob, or a string)
return FilesCollection
    public function notName($pattern)
    {
        $filter = new Iterator\FilenameFilterIterator($this->getIterator(), [], [$pattern]);
        return new FilesCollection(iterator_to_array($filter));
    }