EmailException.php 849 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /*
  3. * Copyright (c) Alexandre Gomes Gaigalas <alganet@gmail.com>
  4. * SPDX-License-Identifier: MIT
  5. */
  6. declare(strict_types=1);
  7. namespace Respect\Validation\Exceptions;
  8. /**
  9. * Exceptions thrown by email rule.
  10. *
  11. * @author Alexandre Gomes Gaigalas <alganet@gmail.com>
  12. * @author Andrey Kolyshkin <a.kolyshkin@semrush.com>
  13. * @author Eduardo Gulias Davis <me@egulias.com>
  14. * @author Henrique Moody <henriquemoody@gmail.com>
  15. * @author Paul Karikari <paulkarikari1@gmail.com>
  16. */
  17. final class EmailException extends ValidationException
  18. {
  19. /**
  20. * {@inheritDoc}
  21. */
  22. protected $defaultTemplates = [
  23. self::MODE_DEFAULT => [
  24. self::STANDARD => '{{name}} 必须是有效的电子邮件',
  25. ],
  26. self::MODE_NEGATIVE => [
  27. self::STANDARD => '{{name}} 不能是电子邮件',
  28. ],
  29. ];
  30. }