Uploadable.php 1007 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace Gedmo\Mapping\Annotation;
  3. use Doctrine\Common\Annotations\Annotation;
  4. use Gedmo\Uploadable\Mapping\Validator;
  5. /**
  6. * Uploadable annotation for Uploadable behavioral extension
  7. *
  8. * @Annotation
  9. * @Target("CLASS")
  10. *
  11. * @author Gustavo Falco <comfortablynumb84@gmail.com>
  12. * @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
  13. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  14. */
  15. final class Uploadable extends Annotation
  16. {
  17. /** @var boolean */
  18. public $allowOverwrite = false;
  19. /** @var boolean */
  20. public $appendNumber = false;
  21. /** @var string */
  22. public $path = '';
  23. /** @var string */
  24. public $pathMethod = '';
  25. /** @var string */
  26. public $callback = '';
  27. /** @var string */
  28. public $filenameGenerator = Validator::FILENAME_GENERATOR_NONE;
  29. /** @var double */
  30. public $maxSize = 0;
  31. /** @var array */
  32. public $allowedTypes = '';
  33. /** @var array */
  34. public $disallowedTypes = '';
  35. }