public function reset()
    {
        // Remove all rules and messages
        $this->rules = [];
        $this->messages = ['rules' => [], 'custom' => []];
        $this->clear();

        // Add the initial rules and messages
        Validate::addRuleSet($this);
        $this->setLanguage($this->lang, $this->langDir);

        return $this;
    }
public function reset()
    {
        // Remove all rules and messages
        $this->rules = [];
        $this->messages = ['rules' => [], 'custom' => []];
        $this->clear();

        // Add the initial rules and messages
        Validate::addRuleSet($this);
        $this->setLanguage($this->lang, $this->langDir);

        return $this;
    }
public function reset ( ) { // Remove all rules and messages $ this -> rules = [ ] ; $ this -> messages = [ 'rules' => [ ] , 'custom' => [ ] ] ; $ this -> clear ( ) ; // Add the initial rules and messages Validate :: addRuleSet ( $ this ) ; $ this -> setLanguage ( $ this -> lang , $ this -> langDir ) ; return $ this ; }
Resets the validator to its initial state.

@return Validator
Resets the validator to its initial state .