protected function getTargets(array $config)
    {
        if (!isset($config['targets'])
            || !is_array($config['targets'])
            || array_filter($config['targets'], 'is_array') != $config['targets']) {
            throw new \DomainException(
                'targets must be an array of arrays',
                self::ERR_TARGETS_INVALID
            );
        }
        return $config['targets'];
    }
protected function getTargets(array $config)
    {
        if (!isset($config['targets'])
            || !is_array($config['targets'])
            || array_filter($config['targets'], 'is_array') != $config['targets']) {
            throw new \DomainException(
                'targets must be an array of arrays',
                self::ERR_TARGETS_INVALID
            );
        }
        return $config['targets'];
    }
protected function getTargets ( array $ config ) { if ( ! isset ( $ config [ 'targets' ] ) || ! is_array ( $ config [ 'targets' ] ) || array_filter ( $ config [ 'targets' ] , 'is_array' ) != $ config [ 'targets' ] ) { throw new \ DomainException ( 'targets must be an array of arrays' , self :: ERR_TARGETS_INVALID ) ; } return $ config [ 'targets' ] ; }
Extracts targets from configuration.

@param array $config
@return array
@throws \DomainException if targets setting is invalid
Extracts targets from configuration .