GroupSequenceProviderInterface.php 674 B

1234567891011121314151617181920212223242526272829
  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[]|GroupSequence An array of validation groups
  22. */
  23. public function getGroupSequence();
  24. }