original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Used by top level functions checkDelete checkCreate and checkUpdate this function iterates an array containing the rules to be checked and checks them all .