Platformsh\Cli\Helper\QuestionHelper::askInput PHP Method

askInput() public method

Ask a simple question which requires input.
public askInput ( string $questionText, mixed $default = null ) : string
$questionText string
$default mixed
return string The user's answer.
    public function askInput($questionText, $default = null)
    {
        if ($default !== null) {
            $questionText .= ' <question>[' . $default . ']</question>';
        }
        $questionText .= ': ';
        $question = new Question($questionText, $default);
        return $this->ask($this->input, $this->output, $question);
    }