public function GroupSequence::offsetSet in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Constraints/GroupSequence.php \Symfony\Component\Validator\Constraints\GroupSequence::offsetSet()
Sets the group at the given offset.
Implemented for backwards compatibility with Symfony < 2.5.
Parameters
int $offset The offset:
string $value The group name:
Deprecated
since version 2.5, to be removed in 3.0.
File
- vendor/
symfony/ validator/ Constraints/ GroupSequence.php, line 167
Class
- GroupSequence
- A sequence of validation groups.
Namespace
Symfony\Component\Validator\ConstraintsCode
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;
}