Drupal investigation

Email.php 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839
  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\Constraints;
  11. use Symfony\Component\Validator\Constraint;
  12. /**
  13. * @Annotation
  14. * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
  15. *
  16. * @author Bernhard Schussek <bschussek@gmail.com>
  17. */
  18. class Email extends Constraint
  19. {
  20. const INVALID_FORMAT_ERROR = 'bd79c0ab-ddba-46cc-a703-a7a4b08de310';
  21. const MX_CHECK_FAILED_ERROR = 'bf447c1c-0266-4e10-9c6c-573df282e413';
  22. const HOST_CHECK_FAILED_ERROR = '7da53a8b-56f3-4288-bb3e-ee9ede4ef9a1';
  23. protected static $errorNames = array(
  24. self::INVALID_FORMAT_ERROR => 'STRICT_CHECK_FAILED_ERROR',
  25. self::MX_CHECK_FAILED_ERROR => 'MX_CHECK_FAILED_ERROR',
  26. self::HOST_CHECK_FAILED_ERROR => 'HOST_CHECK_FAILED_ERROR',
  27. );
  28. public $message = 'This value is not a valid email address.';
  29. public $checkMX = false;
  30. public $checkHost = false;
  31. public $strict;
  32. }