AlwaysInvalidException.php 826 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. * @author Alexandre Gomes Gaigalas <alganet@gmail.com>
  10. * @author Henrique Moody <henriquemoody@gmail.com>
  11. * @author William Espindola <oi@williamespindola.com.br>
  12. */
  13. final class AlwaysInvalidException extends ValidationException
  14. {
  15. public const SIMPLE = 'simple';
  16. /**
  17. * {@inheritDoc}
  18. */
  19. protected $defaultTemplates = [
  20. self::MODE_DEFAULT => [
  21. self::STANDARD => '{{name}} 始终无效',
  22. self::SIMPLE => '{{name}} 无效',
  23. ],
  24. self::MODE_NEGATIVE => [
  25. self::STANDARD => '{{name}} 始终有效',
  26. self::SIMPLE => '{{name}} 有效',
  27. ],
  28. ];
  29. }