$question
$question :
Represents a yes/no question Enforces strict responses rather than non-standard answers counting as default Based on Symfony\Component\Console\Question\ConfirmationQuestion
$hidden :
$hiddenFallback :
__construct(string $question, boolean $default = true, string $trueAnswerRegex = '/^y(?:es)?$/i', string $falseAnswerRegex = '/^no?$/i')
Constructor.s
string | $question | The question to ask to the user |
boolean | $default | The default answer to return, true or false |
string | $trueAnswerRegex | A regex to match the "yes" answer |
string | $falseAnswerRegex | A regex to match the "no" answer |
setAutocompleterValues(\Symfony\Component\Console\Question\iterable|null $values) : $this
Sets values for the autocompleter.
\Symfony\Component\Console\Question\iterable|null | $values |
setMaxAttempts(integer|null $attempts) : $this
Sets the maximum number of attempts.
Null means an unlimited number of attempts.
integer|null | $attempts |
in case the number of attempts is invalid