original_string: public function rulesChecker()
      {
          if ($this->_rulesChecker !== null) {
              return $this->_rulesChecker;
          }
          $class = defined('static::RULES_CLASS') ? static::RULES_CLASS : 'Cake\Datasource\RulesChecker';
          $this->_rulesChecker = $this->buildRules(new $class(['repository' => $this]));
          $this->dispatchEvent('Model.buildRules', ['rules' => $this->_rulesChecker]);
  
          return $this->_rulesChecker;
      }
code: public function rulesChecker()
      {
          if ($this->_rulesChecker !== null) {
              return $this->_rulesChecker;
          }
          $class = defined('static::RULES_CLASS') ? static::RULES_CLASS : 'Cake\Datasource\RulesChecker';
          $this->_rulesChecker = $this->buildRules(new $class(['repository' => $this]));
          $this->dispatchEvent('Model.buildRules', ['rules' => $this->_rulesChecker]);
  
          return $this->_rulesChecker;
      }
code_tokens: public function rulesChecker ( ) { if ( $ this -> _rulesChecker !== null ) { return $ this -> _rulesChecker ; } $ class = defined ( 'static::RULES_CLASS' ) ? static :: RULES_CLASS : 'Cake\Datasource\RulesChecker' ; $ this -> _rulesChecker = $ this -> buildRules ( new $ class ( [ 'repository' => $ this ] ) ) ; $ this -> dispatchEvent ( 'Model.buildRules' , [ 'rules' => $ this -> _rulesChecker ] ) ; return $ this -> _rulesChecker ; }
docstring: Returns the RulesChecker for this instance.
  
  A RulesChecker object is used to test an entity for validity
  on rules that may involve complex logic or data that
  needs to be fetched from relevant datasources.
  
  @see \Cake\Datasource\RulesChecker
  @return \Cake\Datasource\RulesChecker
docstring_tokens: Returns the RulesChecker for this instance .