-
- /**
- * Returns an iterator for this group.
- *
- * Implemented for backwards compatibility with Symfony < 2.5.
- *
- * @return \Traversable The iterator
- *
- * @see \IteratorAggregate::getIterator()
- * @deprecated since version 2.5, to be removed in 3.0.
- */
- public function getIterator()
- {
- @trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
-
- return new \ArrayIterator($this->groups);
- }
-
- /**
- * Returns whether the given offset exists in the sequence.
- *
- * Implemented for backwards compatibility with Symfony < 2.5.
- *
- * @param int $offset The offset
- *
- * @return bool Whether the offset exists
- *
- * @deprecated since version 2.5, to be removed in 3.0.
- */
- public function offsetExists($offset)
- {
- @trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
-
- return isset($this->groups[$offset]);
- }
-
- /**
- * Returns the group at the given offset.
- *
- * Implemented for backwards compatibility with Symfony < 2.5.
- *
- * @param int $offset The offset
- *
- * @return string The group a the given offset
- *
- * @throws OutOfBoundsException If the object does not exist
- *
- * @deprecated since version 2.5, to be removed in 3.0.
- */
- public function offsetGet($offset)
- {
- @trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
-
- if (!isset($this->groups[$offset])) {
- throw new OutOfBoundsException(sprintf(
- 'The offset "%s" does not exist.',
- $offset
- ));
- }
-
- return $this->groups[$offset];
- }
-
- /**
- * Sets the group at the given offset.
- *
- * Implemented for backwards compatibility with Symfony < 2.5.
- *
- * @param int $offset The offset
- * @param string $value The group name
- *
- * @deprecated since version 2.5, to be removed in 3.0.
- */
- public function offsetSet($offset, $value)
- {
- @trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
-
- if (null !== $offset) {
- $this->groups[$offset] = $value;
-
- return;
- }
-
- $this->groups[] = $value;
- }
-
- /**
- * Removes the group at the given offset.
- *
- * Implemented for backwards compatibility with Symfony < 2.5.
- *
- * @param int $offset The offset
- *
- * @deprecated since version 2.5, to be removed in 3.0.
- */
- public function offsetUnset($offset)
- {
- @trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
-
- unset($this->groups[$offset]);
- }
-
- /**
- * Returns the number of groups in the sequence.
- *
- * Implemented for backwards compatibility with Symfony < 2.5.
- *
- * @return int The number of groups
- *
- * @deprecated since version 2.5, to be removed in 3.0.
- */
- public function count()
- {
- @trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
-
- return count($this->groups);
- }