public static function create(array $methods): self
    {
        $manager = new self();
        foreach ($methods as $method) {
            $manager->add($method);
        }

        return $manager;
    }
public static function create(array $methods): self
    {
        $manager = new self();
        foreach ($methods as $method) {
            $manager->add($method);
        }

        return $manager;
    }
public static function create ( array $ methods ) : self { $ manager = new self ( ) ; foreach ( $ methods as $ method ) { $ manager -> add ( $ method ) ; } return $ manager ; }
This method creates a Compression Manager with the selected compression methods.

@param CompressionMethod[] $methods

@return CompressionMethodManager
This method creates a Compression Manager with the selected compression methods .