src/Dir/Dir.php
public function filter($options = [])
    {
        $defaults = array(
            'include' => ['*'],
            'exclude' => [],
            'type' => []
        );
        $options += $defaults;
        $this->_exclude = (array) $options['exclude'];
        $this->_include = (array) $options['include'];
        $this->_types = (array) $options['type'];
    }
public function filter($options = [])
    {
        $defaults = array(
            'include' => ['*'],
            'exclude' => [],
            'type' => []
        );
        $options += $defaults;
        $this->_exclude = (array) $options['exclude'];
        $this->_include = (array) $options['include'];
        $this->_types = (array) $options['type'];
    }
public function filter ( $ options = [ ] ) { $ defaults = array ( 'include' => [ '*' ] , 'exclude' => [ ] , 'type' => [ ] ) ; $ options += $ defaults ; $ this -> _exclude = ( array ) $ options [ 'exclude' ] ; $ this -> _include = ( array ) $ options [ 'include' ] ; $ this -> _types = ( array ) $ options [ 'type' ] ; }
Applies some filters to a `FilterIterator` instance.

@param  array     $options The filters optoins. Possible values are:
-`'include'` _string|array_: An array of includes.
-`'exclude'` _string|array_: An array of excludes.
-`'type'`    _string|array_: An array of types.
Applies some filters to a FilterIterator instance .