GroupSequenceProviderInterface.php 685 B

12345678910111213141516171819202122232425262728
  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;
  11. use Symfony\Component\Validator\Constraints\GroupSequence;
  12. /**
  13. * Defines the interface for a group sequence provider.
  14. */
  15. interface GroupSequenceProviderInterface
  16. {
  17. /**
  18. * Returns which validation groups should be used for a certain state
  19. * of the object.
  20. *
  21. * @return string[]|string[][]|GroupSequence An array of validation groups
  22. */
  23. public function getGroupSequence();
  24. }