public function get(string $name): CompressionMethod
    {
        if (!$this->has($name)) {
            throw new \InvalidArgumentException(\sprintf('The compression method "%s" is not supported.', $name));
        }

        return $this->compressionMethods[$name];
    }
public function get(string $name): CompressionMethod
    {
        if (!$this->has($name)) {
            throw new \InvalidArgumentException(\sprintf('The compression method "%s" is not supported.', $name));
        }

        return $this->compressionMethods[$name];
    }
public function get ( string $ name ) : CompressionMethod { if ( ! $ this -> has ( $ name ) ) { throw new \ InvalidArgumentException ( \ sprintf ( 'The compression method "%s" is not supported.' , $ name ) ) ; } return $ this -> compressionMethods [ $ name ] ; }
This method returns the compression method with the given name.
Throws an exception if the method is not supported.

@param string $name The name of the compression method
This method returns the compression method with the given name . Throws an exception if the method is not supported .