protected function getAdapterNamespaceGivenExtension($fileExtension)
    {
        $adapterNamespace = '\Mmoreram\Extractor\Adapter\\';

        switch ($fileExtension) {

            case 'zip':
                $adapterNamespace .= 'ZipExtractorAdapter';
                break;

            case 'rar':
                $adapterNamespace .= 'RarExtractorAdapter';
                break;

            case 'phar':
                $adapterNamespace .= 'PharExtractorAdapter';
                break;

            case 'tar':
                $adapterNamespace .= 'TarExtractorAdapter';
                break;

            case 'gz':
                $adapterNamespace .= 'TarGzExtractorAdapter';
                break;

            case 'bz2':
                $adapterNamespace .= 'TarBz2ExtractorAdapter';
                break;

            default:
                throw new ExtensionNotSupportedException($fileExtension);
        }

        return $adapterNamespace;
    }
protected function getAdapterNamespaceGivenExtension($fileExtension)
    {
        $adapterNamespace = '\Mmoreram\Extractor\Adapter\\';

        switch ($fileExtension) {

            case 'zip':
                $adapterNamespace .= 'ZipExtractorAdapter';
                break;

            case 'rar':
                $adapterNamespace .= 'RarExtractorAdapter';
                break;

            case 'phar':
                $adapterNamespace .= 'PharExtractorAdapter';
                break;

            case 'tar':
                $adapterNamespace .= 'TarExtractorAdapter';
                break;

            case 'gz':
                $adapterNamespace .= 'TarGzExtractorAdapter';
                break;

            case 'bz2':
                $adapterNamespace .= 'TarBz2ExtractorAdapter';
                break;

            default:
                throw new ExtensionNotSupportedException($fileExtension);
        }

        return $adapterNamespace;
    }
protected function getAdapterNamespaceGivenExtension ( $ fileExtension ) { $ adapterNamespace = '\Mmoreram\Extractor\Adapter\\' ; switch ( $ fileExtension ) { case 'zip' : $ adapterNamespace .= 'ZipExtractorAdapter' ; break ; case 'rar' : $ adapterNamespace .= 'RarExtractorAdapter' ; break ; case 'phar' : $ adapterNamespace .= 'PharExtractorAdapter' ; break ; case 'tar' : $ adapterNamespace .= 'TarExtractorAdapter' ; break ; case 'gz' : $ adapterNamespace .= 'TarGzExtractorAdapter' ; break ; case 'bz2' : $ adapterNamespace .= 'TarBz2ExtractorAdapter' ; break ; default : throw new ExtensionNotSupportedException ( $ fileExtension ) ; } return $ adapterNamespace ; }
Return a extractor adapter namespace given an extension

@param string $fileExtension File extension

@return string Adapter namespace

@throws ExtensionNotSupportedException Exception not found
Return a extractor adapter namespace given an extension