pharext\Task\PharCompress::__construct PHP Method

__construct() public method

public __construct ( string $file, integer $encoding )
$file string path to the original phar
$encoding integer Phar::GZ or Phar::BZ2
    public function __construct($file, $encoding)
    {
        $this->file = $file;
        $this->package = new Phar($file);
        $this->encoding = $encoding;
        switch ($encoding) {
            case Phar::GZ:
                $this->extension = ".gz";
                break;
            case Phar::BZ2:
                $this->extension = ".bz2";
                break;
        }
    }
PharCompress