ValidationStamp.php 717 B

1234567891011121314151617181920212223242526272829303132333435
  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\Messenger\Stamp;
  11. use Symfony\Component\Validator\Constraints\GroupSequence;
  12. /**
  13. * @author Maxime Steinhausser <maxime.steinhausser@gmail.com>
  14. */
  15. final class ValidationStamp implements StampInterface
  16. {
  17. private $groups;
  18. /**
  19. * @param string[]|GroupSequence $groups
  20. */
  21. public function __construct($groups)
  22. {
  23. $this->groups = $groups;
  24. }
  25. public function getGroups()
  26. {
  27. return $this->groups;
  28. }
  29. }