Source.php 508 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace Gregwar\Image\Source;
  3. /**
  4. * An Image source.
  5. */
  6. class Source
  7. {
  8. /**
  9. * Guess the type of the image.
  10. */
  11. public function guessType()
  12. {
  13. return 'jpeg';
  14. }
  15. /**
  16. * Is this image correct ?
  17. */
  18. public function correct()
  19. {
  20. return true;
  21. }
  22. /**
  23. * Returns information about images, these informations should
  24. * change only if the original image changed.
  25. */
  26. public function getInfos()
  27. {
  28. return;
  29. }
  30. }