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);
        }
    }
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);
        }
    }
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 ) ; } }
Validates a user input from prompt
@param string $field
@param string $label
@param string $validator
@param string|null $default
Validates a user input from prompt