public function setGit(commands\git $git = null) { $this->git = $git ?: new commands\git(); return $this; }