public function create(ConfigInterface $config)
    {
        $operationNames = $config->get('operationNames');
        if (!empty($operationNames)) {
            return new ServiceOperationFilter($config);
        } else {
            return new DefaultFilter();
        }
    }
public function create(ConfigInterface $config)
    {
        $operationNames = $config->get('operationNames');
        if (!empty($operationNames)) {
            return new ServiceOperationFilter($config);
        } else {
            return new DefaultFilter();
        }
    }
public function create ( ConfigInterface $ config ) { $ operationNames = $ config -> get ( 'operationNames' ) ; if ( ! empty ( $ operationNames ) ) { return new ServiceOperationFilter ( $ config ) ; } else { return new DefaultFilter ( ) ; } }
Returns a filter matching the provided configuration.

@param ConfigInterface $config The configuration to create a filter for.
@return FilterInterface A matching filter.
Returns a filter matching the provided configuration .