LeapDateException.php 640 B

1234567891011121314151617181920212223242526272829
  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 Danilo Benevides <danilobenevides01@gmail.com>
  10. * @author Henrique Moody <henriquemoody@gmail.com>
  11. */
  12. final class LeapDateException extends ValidationException
  13. {
  14. /**
  15. * {@inheritDoc}
  16. */
  17. protected $defaultTemplates = [
  18. self::MODE_DEFAULT => [
  19. self::STANDARD => '{{name}} 必须是闰日',
  20. ],
  21. self::MODE_NEGATIVE => [
  22. self::STANDARD => '{{name}} 不能是闰日',
  23. ],
  24. ];
  25. }