You are here

public function Question::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Question/Question.php \Symfony\Component\Console\Question\Question::__construct()

Constructor.

Parameters

string $question The question to ask to the user:

mixed $default The default answer to return if the user enters nothing:

2 calls to Question::__construct()
ChoiceQuestion::__construct in vendor/symfony/console/Question/ChoiceQuestion.php
Constructor.
ConfirmationQuestion::__construct in vendor/symfony/console/Question/ConfirmationQuestion.php
Constructor.
2 methods override Question::__construct()
ChoiceQuestion::__construct in vendor/symfony/console/Question/ChoiceQuestion.php
Constructor.
ConfirmationQuestion::__construct in vendor/symfony/console/Question/ConfirmationQuestion.php
Constructor.

File

vendor/symfony/console/Question/Question.php, line 36

Class

Question
Represents a Question.

Namespace

Symfony\Component\Console\Question

Code

public function __construct($question, $default = null) {
  $this->question = $question;
  $this->default = $default;
}