private static function getMethodClass($method) { Assertion::true(self::isAlgorithmSupported($method), sprintf('Compression method "%s" is not supported.', $method)); return self::getSupportedMethods()[$method]; }