public function isValid($ruleset = null, $mergeWithSaving = true)
    {
        $rules = is_array($ruleset) ? $ruleset : $this->getRuleset($ruleset, $mergeWithSaving) ?: $this->getDefaultRules();

        return $this->performValidation($rules);
    }
public function isValid($ruleset = null, $mergeWithSaving = true)
    {
        $rules = is_array($ruleset) ? $ruleset : $this->getRuleset($ruleset, $mergeWithSaving) ?: $this->getDefaultRules();

        return $this->performValidation($rules);
    }
public function isValid ( $ ruleset = null , $ mergeWithSaving = true ) { $ rules = is_array ( $ ruleset ) ? $ ruleset : $ this -> getRuleset ( $ ruleset , $ mergeWithSaving ) ? : $ this -> getDefaultRules ( ) ; return $ this -> performValidation ( $ rules ) ; }
Returns whether the model is valid or not.

@param mixed $ruleset         (@deprecated watson/validating@0.10.9)
@param bool  $mergeWithSaving (@deprecated watson/validating@0.10.9)

@return bool
Returns whether the model is valid or not .