public function GroupSequence::offsetGet in Plug 7
Returns the group at the given offset.
Parameters
int $offset The offset:
Return value
string The group a the given offset
Throws
OutOfBoundsException If the object does not exist
Deprecated
Implemented for backwards compatibility with Symfony < 2.5. To be removed in Symfony 3.0.
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Constraints/ GroupSequence.php, line 139
Class
- GroupSequence
- A sequence of validation groups.
Namespace
Symfony\Component\Validator\ConstraintsCode
public function offsetGet($offset) {
if (!isset($this->groups[$offset])) {
throw new OutOfBoundsException(sprintf('The offset "%s" does not exist.', $offset));
}
return $this->groups[$offset];
}