Esempio n. 1
0
 /**
  * Checks if the maximum group count is exceeded.
  *
  * @param int $groupIdx
  * @param int $count
  * @param int $nestingLevel
  *
  * @throws GroupsOverflowException
  */
 protected function validateGroupsCount($groupIdx, $count, $nestingLevel)
 {
     if ($count > $this->config->getMaxGroups()) {
         throw new GroupsOverflowException($this->config->getMaxGroups(), $count, $groupIdx, $nestingLevel);
     }
 }