AdapterInterface.php 879 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * PHP Exif Reader Adapter Interface: Defines the interface for reader adapters
  4. *
  5. * @link http://github.com/miljar/PHPExif for the canonical source repository
  6. * @copyright Copyright (c) 2013 Tom Van Herreweghe <tom@theanalogguy.be>
  7. * @license http://github.com/miljar/PHPExif/blob/master/LICENSE MIT License
  8. * @category PHPExif
  9. * @package Reader
  10. * @codeCoverageIgnore
  11. */
  12. namespace PHPExif\Adapter;
  13. /**
  14. * PHP Exif Reader Adapter
  15. *
  16. * Defines the interface for reader adapters
  17. *
  18. * @category PHPExif
  19. * @package Reader
  20. */
  21. interface AdapterInterface
  22. {
  23. /**
  24. * Reads & parses the EXIF data from given file
  25. *
  26. * @param string $file
  27. * @return \PHPExif\Exif Instance of Exif object with data
  28. * @throws \RuntimeException If the EXIF data could not be read
  29. */
  30. public function getExifFromFile($file);
  31. }