You are here

public function GroupSequence::offsetExists in Plug 7

Returns whether the given offset exists in the sequence.

Parameters

int $offset The offset:

Return value

bool Whether the offset exists

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 122

Class

GroupSequence
A sequence of validation groups.

Namespace

Symfony\Component\Validator\Constraints

Code

public function offsetExists($offset) {
  return isset($this->groups[$offset]);
}