protected function _checkRules(EntityInterface $entity, array $options = [], array $rules = [])
    {
        $success = true;
        $options += $this->_options;
        foreach ($rules as $rule) {
            $success = $rule($entity, $options) && $success;
        }

        return $success;
    }
protected function _checkRules(EntityInterface $entity, array $options = [], array $rules = [])
    {
        $success = true;
        $options += $this->_options;
        foreach ($rules as $rule) {
            $success = $rule($entity, $options) && $success;
        }

        return $success;
    }
protected function _checkRules ( EntityInterface $ entity , array $ options = [ ] , array $ rules = [ ] ) { $ success = true ; $ options += $ this -> _options ; foreach ( $ rules as $ rule ) { $ success = $ rule ( $ entity , $ options ) && $ success ; } return $ success ; }
Used by top level functions checkDelete, checkCreate and checkUpdate, this function
iterates an array containing the rules to be checked and checks them all.

@param \Cake\Datasource\EntityInterface $entity The entity to check for validity.
@param array $options Extra options to pass to checker functions.
@param array $rules The list of rules that must be checked.
@return bool
Used by top level functions checkDelete checkCreate and checkUpdate this function iterates an array containing the rules to be checked and checks them all .