GroupSequenceProviderEntity.php 792 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Validator\Tests\Fixtures;
  11. use Symfony\Component\Validator\Constraints as Assert;
  12. use Symfony\Component\Validator\GroupSequenceProviderInterface;
  13. /**
  14. * @Assert\GroupSequenceProvider
  15. */
  16. class GroupSequenceProviderEntity implements GroupSequenceProviderInterface
  17. {
  18. public $firstName;
  19. public $lastName;
  20. protected $sequence = array();
  21. public function __construct($sequence)
  22. {
  23. $this->sequence = $sequence;
  24. }
  25. public function getGroupSequence()
  26. {
  27. return $this->sequence;
  28. }
  29. }