public function __construct($targetDir, $version) { $this->targetDir = $targetDir; $this->root = Config::getPhpbrewRoot(); $this->buildDir = Config::getBuildDir(); $this->version = $version; chdir($targetDir); }