public function choose($question, array $options, $default, $error_message)
	{
		/** @var QuestionHelper $helper */
		$helper = $this->_helperSet->get('question');
		$choice_question = new ChoiceQuestion('<question>' . $question . '</question> ', $options, $default);
		$choice_question->setErrorMessage($error_message);

		return $helper->ask($this->_input, $this->_output, $choice_question);
	}
public function choose($question, array $options, $default, $error_message)
	{
		/** @var QuestionHelper $helper */
		$helper = $this->_helperSet->get('question');
		$choice_question = new ChoiceQuestion('<question>' . $question . '</question> ', $options, $default);
		$choice_question->setErrorMessage($error_message);

		return $helper->ask($this->_input, $this->_output, $choice_question);
	}
public function choose ( $ question , array $ options , $ default , $ error_message ) { /** @var QuestionHelper $helper */ $ helper = $ this -> _helperSet -> get ( 'question' ) ; $ choice_question = new ChoiceQuestion ( '<question>' . $ question . '</question> ' , $ options , $ default ) ; $ choice_question -> setErrorMessage ( $ error_message ) ; return $ helper -> ask ( $ this -> _input , $ this -> _output , $ choice_question ) ; }
Asks user to choose.

@param string $question      The question to ask.
@param array  $options       Valid answer options.
@param mixed  $default       Default answer.
@param string $error_message Error on incorrect answer.

@return mixed
Asks user to choose .