FileException.php 629 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 Correa <danilosilva87@gmail.com>
  10. * @author Henrique Moody <henriquemoody@gmail.com>
  11. */
  12. final class FileException 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. }