public function setPrompt(script\prompt $prompt = null) { if ($prompt === null) { $prompt = new script\prompt(); } $this->prompt = $prompt->setOutputWriter($this->outputWriter); return $this; }