Beispiel #1
0
 public function ask($question, $regex, $errorText = null, $default = null)
 {
     return $this->output->ask("<question>{$question}</question>", $default, $this->validateWith($regex, $errorText));
 }
Beispiel #2
0
 /**
  * Prompt the user for input.
  *
  * @param  string  $question
  * @param  string  $default
  * @return string
  */
 public function ask($question, $default = null)
 {
     return $this->output->ask($question, $default);
 }
Beispiel #3
0
 /**
  * Process property of the type 'question'
  *
  * Method will ask the user a question and return
  * the user's answer.
  *
  * @param Property $property
  *
  * @return string Answer to the question
  */
 protected function handleQuestionType(Property $property)
 {
     return $this->output->ask($property->getQuestion(), $property->getValue(), $property->getValidation());
 }