protected function setQuestionDefault(Question $question, $default_value) {
    if ($question instanceof ChoiceQuestion) {
      $question->__construct($question->getQuestion(), $question->getChoices(), $default_value);
    }
    else {
      $question->__construct($question->getQuestion(), $default_value);
    }
  }
protected function setQuestionDefault(Question $question, $default_value) {
    if ($question instanceof ChoiceQuestion) {
      $question->__construct($question->getQuestion(), $question->getChoices(), $default_value);
    }
    else {
      $question->__construct($question->getQuestion(), $default_value);
    }
  }
protected function setQuestionDefault ( Question $ question , $ default_value ) { if ( $ question instanceof ChoiceQuestion ) { $ question -> __construct ( $ question -> getQuestion ( ) , $ question -> getChoices ( ) , $ default_value ) ; } else { $ question -> __construct ( $ question -> getQuestion ( ) , $ default_value ) ; } }
Sets question default value.

@param \Symfony\Component\Console\Question\Question $question
The question to update.
@param mixed $default_value
Default value for the question.
Sets question default value .