TrueValException.php 678 B

12345678910111213141516171819202122232425262728293031
  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 TrueVal rule.
  10. *
  11. * @author Henrique Moody <henriquemoody@gmail.com>
  12. * @author Paul Karikari <paulkarikari1@gmail.com>
  13. */
  14. final class TrueValException extends ValidationException
  15. {
  16. /**
  17. * {@inheritDoc}
  18. */
  19. protected $defaultTemplates = [
  20. self::MODE_DEFAULT => [
  21. self::STANDARD => '{{name}} 不被视为 "True"',
  22. ],
  23. self::MODE_NEGATIVE => [
  24. self::STANDARD => '{{name}} 被视为 "True"',
  25. ],
  26. ];
  27. }