FileInfoInterface.php 640 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Gedmo\Uploadable\FileInfo;
  3. /**
  4. * FileInfoInterface
  5. *
  6. * @author Gustavo Falco <comfortablynumb84@gmail.com>
  7. * @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
  8. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  9. */
  10. interface FileInfoInterface
  11. {
  12. public function getTmpName();
  13. public function getName();
  14. public function getSize();
  15. public function getType();
  16. public function getError();
  17. /**
  18. * This method must return true if the file is coming from $_FILES, or false instead.
  19. *
  20. * @return bool
  21. */
  22. public function isUploadedFile();
  23. }