public function filter(\SPLFileInfo $file)
    {
        foreach ($this->filterlist as $filter) {
            if (! $filter->filter($file)) {
                return false;
            }
        }
        return true;
    }
public function filter(\SPLFileInfo $file)
    {
        foreach ($this->filterlist as $filter) {
            if (! $filter->filter($file)) {
                return false;
            }
        }
        return true;
    }
public function filter ( \ SPLFileInfo $ file ) { foreach ( $ this -> filterlist as $ filter ) { if ( ! $ filter -> filter ( $ file ) ) { return false ; } } return true ; }
Filter the file

@param SPLFileInfo $file

@return bool
Filter the file