protected function translateTarget(array $config)
    {
        if (empty($config['dirname'])) {
            throw new Exception('invalid target: dirname has to be configured');
        }
        if (empty($config['filename'])) {
            throw new Exception('invalid target: filename has to be configured');
        }
        $dirname     = $config['dirname'];
        $filename    = $config['filename'];
        $compression = !empty($config['compression']) ? $config['compression'] : null;

        return new Target($dirname, $filename, $compression);
    }
protected function translateTarget(array $config)
    {
        if (empty($config['dirname'])) {
            throw new Exception('invalid target: dirname has to be configured');
        }
        if (empty($config['filename'])) {
            throw new Exception('invalid target: filename has to be configured');
        }
        $dirname     = $config['dirname'];
        $filename    = $config['filename'];
        $compression = !empty($config['compression']) ? $config['compression'] : null;

        return new Target($dirname, $filename, $compression);
    }
protected function translateTarget ( array $ config ) { if ( empty ( $ config [ 'dirname' ] ) ) { throw new Exception ( 'invalid target: dirname has to be configured' ) ; } if ( empty ( $ config [ 'filename' ] ) ) { throw new Exception ( 'invalid target: filename has to be configured' ) ; } $ dirname = $ config [ 'dirname' ] ; $ filename = $ config [ 'filename' ] ; $ compression = ! empty ( $ config [ 'compression' ] ) ? $ config [ 'compression' ] : null ; return new Target ( $ dirname , $ filename , $ compression ) ; }
Translate the target configuration.

@param  array $config
@return Target
@throws \Exception
Translate the target configuration .