TransformationsInterface.php 884 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Interface for the transformations plugins
  5. *
  6. * @package PhpMyAdmin
  7. */
  8. declare(strict_types=1);
  9. namespace PhpMyAdmin\Plugins;
  10. /**
  11. * Provides a common interface that will have to be implemented by all of the
  12. * transformations plugins.
  13. *
  14. * @package PhpMyAdmin
  15. */
  16. interface TransformationsInterface
  17. {
  18. /**
  19. * Gets the transformation description
  20. *
  21. * @return string
  22. */
  23. public static function getInfo();
  24. /**
  25. * Gets the specific MIME type
  26. *
  27. * @return string
  28. */
  29. public static function getMIMEType();
  30. /**
  31. * Gets the specific MIME subtype
  32. *
  33. * @return string
  34. */
  35. public static function getMIMESubtype();
  36. /**
  37. * Gets the transformation name of the specific plugin
  38. *
  39. * @return string
  40. */
  41. public static function getName();
  42. }