Confirmation
class Confirmation extends Question
Confirmation helper.
Properties
protected Input | $input | Input instance. | from Question |
protected Output | $output | Output instance. | from Question |
Methods
mixed
ask(string $question, mixed $default = 'n', array|null $options = null)
Asks user for confirmation and returns value corresponding to the chosen value.
array
normalizeKeys(array $array)
Returns an array where all array keys lower case.
string
getOptions(array $options, string $default)
Returns a slash-separated list of valid options where the default one is highlighted as upper-case.
Details
at line 68
mixed
ask(string $question, mixed $default = 'n', array|null $options = null)
Asks user for confirmation and returns value corresponding to the chosen value.
at line 29
protected array
normalizeKeys(array $array)
Returns an array where all array keys lower case.
at line 48
protected string
getOptions(array $options, string $default)
Returns a slash-separated list of valid options where the default one is highlighted as upper-case.