/** * validText * * @param string $msg * @param array $options * @param mixed $default * @param string $noValidMessage * @param int $attemptTimes * @param bool $failCloseMessage * * @return string */ public static function validText($msg = '', $options = array(), $default = null, $noValidMessage = null, $attemptTimes = 3, $failCloseMessage = false) { $prompter = new ValidatePrompter(); $prompter->setOptions($options); static::prepareCallbackPrompter($prompter, $noValidMessage, $attemptTimes, $failCloseMessage); return $prompter->ask($msg, $default); }