public function setCurrentCommand(ConsoleCommand $command = null) { // The parent class has a similar (private) property named // $runningCommand. $this->currentCommand = $command; }