original_string: protected function validatePrompt($field, $label, $validator, $default = null)
      {
          $input = $this->prompt($label, $default);
  
          if (!$this->isValidInput($input, $field, $validator)) {
              $this->errors();
              $this->validatePrompt($field, $label, $validator, $default);
          }
      }
code: protected function validatePrompt($field, $label, $validator, $default = null)
      {
          $input = $this->prompt($label, $default);
  
          if (!$this->isValidInput($input, $field, $validator)) {
              $this->errors();
              $this->validatePrompt($field, $label, $validator, $default);
          }
      }
code_tokens: protected function validatePrompt ( $ field , $ label , $ validator , $ default = null ) { $ input = $ this -> prompt ( $ label , $ default ) ; if ( ! $ this -> isValidInput ( $ input , $ field , $ validator ) ) { $ this -> errors ( ) ; $ this -> validatePrompt ( $ field , $ label , $ validator , $ default ) ; } }
docstring: Validates a user input from prompt
  @param string $field
  @param string $label
  @param string $validator
  @param string|null $default
docstring_tokens: Validates a user input from prompt