public function isInteractive()
{
return $this->interactive;
}
public function run() { if (!$this->input->isInteractive()) { return $this->question->getDefault(); } if (!$this->question->getValidator()) { return $this->doAsk(); } $that = $this; $interviewer = function () use($that) { return $that->doAsk(); }; return $this->validateAttempts($interviewer); }