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