You are here

public function GroupSequence::offsetSet in Plug 7

Sets the group at the given offset.

Parameters

int $offset The offset:

string $value The group name:

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 160

Class

GroupSequence
A sequence of validation groups.

Namespace

Symfony\Component\Validator\Constraints

Code

public function offsetSet($offset, $value) {
  if (null !== $offset) {
    $this->groups[$offset] = $value;
    return;
  }
  $this->groups[] = $value;
}