pharext\Task\PharStub::__construct PHP Method

__construct() public method

public __construct ( Phar $phar, string $stub )
$phar Phar
$stub string file path to the stub
    function __construct(Phar $phar, $stub)
    {
        $this->phar = $phar;
        if (!file_exists($this->stub = $stub)) {
            throw new Exception("File '{$stub}' does not exist");
        }
    }