vendor/symfony/src/Symfony/Component/Validator/Constraints/GroupSequence.php
changeset 0 7f95f8617b0b
equal deleted inserted replaced
-1:000000000000 0:7f95f8617b0b
       
     1 <?php
       
     2 
       
     3 /*
       
     4  * This file is part of the Symfony package.
       
     5  *
       
     6  * (c) Fabien Potencier <fabien@symfony.com>
       
     7  *
       
     8  * For the full copyright and license information, please view the LICENSE
       
     9  * file that was distributed with this source code.
       
    10  */
       
    11 
       
    12 namespace Symfony\Component\Validator\Constraints;
       
    13 
       
    14 /**
       
    15  * Annotation for group sequences
       
    16  *
       
    17  * @Annotation
       
    18  * @author Bernhard Schussek <bernhard.schussek@symfony.com>
       
    19  *
       
    20  * @api
       
    21  */
       
    22 class GroupSequence
       
    23 {
       
    24     /**
       
    25      * The members of the sequence
       
    26      * @var array
       
    27      */
       
    28     public $groups;
       
    29 
       
    30     public function __construct(array $groups)
       
    31     {
       
    32         $this->groups = $groups['value'];
       
    33     }
       
    34 }