You are here

public function GroupSequence::offsetExists in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Constraints/GroupSequence.php \Symfony\Component\Validator\Constraints\GroupSequence::offsetExists()

Returns whether the given offset exists in the sequence.

Implemented for backwards compatibility with Symfony < 2.5.

Parameters

int $offset The offset:

Return value

bool Whether the offset exists

Deprecated

since version 2.5, to be removed in 3.0.

File

vendor/symfony/validator/Constraints/GroupSequence.php, line 123

Class

GroupSequence
A sequence of validation groups.

Namespace

Symfony\Component\Validator\Constraints

Code

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]);
}