public function ask($question, $regex, $errorText = null, $default = null) { return $this->output->ask("<question>{$question}</question>", $default, $this->validateWith($regex, $errorText)); }
/** * 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); }
/** * 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()); }