PunctException.php 881 B

1234567891011121314151617181920212223242526272829303132
  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. * @author Andre Ramaciotti <andre@ramaciotti.com>
  10. * @author Danilo Correa <danilosilva87@gmail.com>
  11. * @author Henrique Moody <henriquemoody@gmail.com>
  12. */
  13. final class PunctException extends FilteredValidationException
  14. {
  15. /**
  16. * {@inheritDoc}
  17. */
  18. protected $defaultTemplates = [
  19. self::MODE_DEFAULT => [
  20. self::STANDARD => '{{name}} 只能包含标点符号',
  21. self::EXTRA => '{{name}} 只能包含标点符号和 {{additionalChars}}',
  22. ],
  23. self::MODE_NEGATIVE => [
  24. self::STANDARD => '{{name}} 不能包含标点符号',
  25. self::EXTRA => '{{name}} 不能包含标点符号或 {{additionalChars}}',
  26. ],
  27. ];
  28. }