N98\Magento\Command\Database\AbstractDatabaseCommand::getCompressor PHP 메소드

getCompressor() 보호된 메소드

protected getCompressor ( string $type ) : N98\Magento\Command\Database\Compressor\Compressor
$type string
리턴 N98\Magento\Command\Database\Compressor\Compressor
    protected function getCompressor($type)
    {
        switch ($type) {
            case null:
                return new Uncompressed();
            case 'gz':
            case 'gzip':
                return new Gzip();
            default:
                throw new InvalidArgumentException("Compression type '{$type}' is not supported. Known values are: gz, gzip");
        }
    }