public function override($data, $rules)
    {
        $this->setData($data);
        $this->setRules($rules);
        $this->setCustomMessages($this->overrideCustomMessages);
    }
public function override($data, $rules)
    {
        $this->setData($data);
        $this->setRules($rules);
        $this->setCustomMessages($this->overrideCustomMessages);
    }
public function override ( $ data , $ rules ) { $ this -> setData ( $ data ) ; $ this -> setRules ( $ rules ) ; $ this -> setCustomMessages ( $ this -> overrideCustomMessages ) ; }
Overrides the rules and data.

@param array $data
@param array $rules
Overrides the rules and data .