public function applyFilters($options) {
        if (isset($options['filters']) && is_array($options['filters'])) {
            array_map(function($filter) {
                $this->thumb = $filter->applyFilter($this->thumb);
            }, $options['filters']);
        }
        return $this;
    }
public function applyFilters($options) {
        if (isset($options['filters']) && is_array($options['filters'])) {
            array_map(function($filter) {
                $this->thumb = $filter->applyFilter($this->thumb);
            }, $options['filters']);
        }
        return $this;
    }
public function applyFilters ( $ options ) { if ( isset ( $ options [ 'filters' ] ) && is_array ( $ options [ 'filters' ] ) ) { array_map ( function ( $ filter ) { $ this -> thumb = $ filter -> applyFilter ( $ this -> thumb ) ; } , $ options [ 'filters' ] ) ; } return $ this ; }
Apply filters that have been defined in the config as seperate classes.

@param array $filters Array of filter instances
@return $this
Apply filters that have been defined in the config as seperate classes .