Matthias\SymfonyConsoleForm\Console\Helper\Question\AlwaysReturnKeyOfChoiceQuestion::__construct PHP Method

__construct() public method

public __construct ( string $question, array $choiceViews, mixed $default = null )
$question string The question to ask to the user.
$choiceViews array
$default mixed The default answer to return.
    public function __construct($question, array $choiceViews, $default = null)
    {
        $this->assertFlatChoiceViewsArray($choiceViews);
        $this->choiceViews = $choiceViews;
        parent::__construct($question, $this->prepareChoices(), $default);
        $this->setAutocompleterValues($this->prepareAutocompleteValues());
    }