public function setGitEnviroment(GitEnvironmentInterface $gitEnvironment) { if (!$gitEnvironment->getSsh()) { throw new \Exception('This Git Environment does not use SSH'); } $this->gitEnvironment = $gitEnvironment; }
public function getLastExitStatus() { if ($this->gitEnvironment->getSsh() === true) { return $this->sshProcess->getExitStatus(); } else { return $this->exitCode; } }