protected function setQuestionText(Question $question, $question_text) {
    // Choice question has a different constructor signature.
    if ($question instanceof ChoiceQuestion) {
      $question->__construct($question_text, $question->getChoices(), $question->getDefault());
    }
    else {
      $question->__construct($question_text, $question->getDefault());
    }
  }
protected function setQuestionText(Question $question, $question_text) {
    // Choice question has a different constructor signature.
    if ($question instanceof ChoiceQuestion) {
      $question->__construct($question_text, $question->getChoices(), $question->getDefault());
    }
    else {
      $question->__construct($question_text, $question->getDefault());
    }
  }
protected function setQuestionText ( Question $ question , $ question_text ) { // Choice question has a different constructor signature. if ( $ question instanceof ChoiceQuestion ) { $ question -> __construct ( $ question_text , $ question -> getChoices ( ) , $ question -> getDefault ( ) ) ; } else { $ question -> __construct ( $ question_text , $ question -> getDefault ( ) ) ; } }
Sets question text.

@param \Symfony\Component\Console\Question\Question $question
The question to update.
@param mixed $question_text
The question text.
Sets question text .