You are here

public function GroupSequence::__construct in Plug 7

Creates a new group sequence.

Parameters

string[] $groups The groups in the sequence:

File

lib/Symfony/validator/Symfony/Component/Validator/Constraints/GroupSequence.php, line 91

Class

GroupSequence
A sequence of validation groups.

Namespace

Symfony\Component\Validator\Constraints

Code

public function __construct(array $groups) {

  // Support for Doctrine annotations
  $this->groups = isset($groups['value']) ? $groups['value'] : $groups;
}