File.php 765 B

12345678910111213141516171819202122
  1. <?php
  2. namespace Symfony\Component\Validator\Constraints;
  3. /*
  4. * This file is part of the Symfony framework.
  5. *
  6. * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  7. *
  8. * This source file is subject to the MIT license that is bundled
  9. * with this source code in the file LICENSE.
  10. */
  11. class File extends \Symfony\Component\Validator\Constraint
  12. {
  13. public $maxSize = null;
  14. public $mimeTypes = array();
  15. public $notFoundMessage = 'The file could not be found';
  16. public $notReadableMessage = 'The file is not readable';
  17. public $maxSizeMessage = 'The file is too large ({{ size }}). Allowed maximum size is {{ limit }}';
  18. public $mimeTypesMessage = 'The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}';
  19. }