function Question::__construct
Parameters
string $question The question to ask to the user:
string|bool|int|float|null $default The default answer to return if the user enters nothing:
6 calls to Question::__construct()
- ChoiceQuestion::__construct in vendor/
symfony/ console/ Question/ ChoiceQuestion.php - ChoiceQuestion::__construct in vendor/
symfony/ console/ Question/ ChoiceQuestion.php - ConfirmationQuestion::__construct in vendor/
symfony/ console/ Question/ ConfirmationQuestion.php - ConfirmationQuestion::__construct in vendor/
symfony/ console/ Question/ ConfirmationQuestion.php - StrictConfirmationQuestion::__construct in vendor/
composer/ composer/ src/ Composer/ Question/ StrictConfirmationQuestion.php - Constructor.s
3 methods override Question::__construct()
- ChoiceQuestion::__construct in vendor/
symfony/ console/ Question/ ChoiceQuestion.php - ConfirmationQuestion::__construct in vendor/
symfony/ console/ Question/ ConfirmationQuestion.php - StrictConfirmationQuestion::__construct in vendor/
composer/ composer/ src/ Composer/ Question/ StrictConfirmationQuestion.php - Constructor.s
File
-
vendor/
symfony/ console/ Question/ Question.php, line 37
Class
- Question
- Represents a Question.
Namespace
Symfony\Component\Console\QuestionCode
public function __construct(string $question, string|bool|int|float|null $default = null) {
}