original_string: public function isValid($ruleset = null, $mergeWithSaving = true)
      {
          $rules = is_array($ruleset) ? $ruleset : $this->getRuleset($ruleset, $mergeWithSaving) ?: $this->getDefaultRules();
  
          return $this->performValidation($rules);
      }
code: public function isValid($ruleset = null, $mergeWithSaving = true)
      {
          $rules = is_array($ruleset) ? $ruleset : $this->getRuleset($ruleset, $mergeWithSaving) ?: $this->getDefaultRules();
  
          return $this->performValidation($rules);
      }
code_tokens: public function isValid ( $ ruleset = null , $ mergeWithSaving = true ) { $ rules = is_array ( $ ruleset ) ? $ ruleset : $ this -> getRuleset ( $ ruleset , $ mergeWithSaving ) ? : $ this -> getDefaultRules ( ) ; return $ this -> performValidation ( $ rules ) ; }
docstring: 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
docstring_tokens: Returns whether the model is valid or not .