AutoMappingStrategy.php 805 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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\Mapping;
  11. /**
  12. * Specifies how the auto-mapping feature should behave.
  13. *
  14. * @author Maxime Steinhausser <maxime.steinhausser@gmail.com>
  15. */
  16. final class AutoMappingStrategy
  17. {
  18. /**
  19. * Nothing explicitly set, rely on auto-mapping configured regex.
  20. */
  21. public const NONE = 0;
  22. /**
  23. * Explicitly enabled.
  24. */
  25. public const ENABLED = 1;
  26. /**
  27. * Explicitly disabled.
  28. */
  29. public const DISABLED = 2;
  30. /**
  31. * Not instantiable.
  32. */
  33. private function __construct()
  34. {
  35. }
  36. }