public function ChoiceQuestion::setMultiselect in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Question/ChoiceQuestion.php \Symfony\Component\Console\Question\ChoiceQuestion::setMultiselect()
Sets multiselect option.
When multiselect is set to true, multiple choices can be answered.
Parameters
bool $multiselect:
Return value
ChoiceQuestion The current instance
File
- vendor/
symfony/ console/ Question/ ChoiceQuestion.php, line 61
Class
- ChoiceQuestion
- Represents a choice question.
Namespace
Symfony\Component\Console\QuestionCode
public function setMultiselect($multiselect) {
$this->multiselect = $multiselect;
$this
->setValidator($this
->getDefaultValidator());
return $this;
}