/** * @param string $question The question to ask to the user. * @param array $choices The list of available choices. * @param mixed $default 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()); }
public function __construct($question, array $choices, $default = null) { $this->choices = $choices; parent::__construct($question, $choices, $default); }