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;
    }
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;
    }
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 ; }
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
Returns the RulesChecker for this instance .