ImageContentInterface.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Api\Data;
  7. /**
  8. * Image Content data interface
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface ImageContentInterface
  14. {
  15. const BASE64_ENCODED_DATA = 'base64_encoded_data';
  16. const TYPE = 'type';
  17. const NAME = 'name';
  18. /**
  19. * Retrieve media data (base64 encoded content)
  20. *
  21. * @return string
  22. */
  23. public function getBase64EncodedData();
  24. /**
  25. * Set media data (base64 encoded content)
  26. *
  27. * @param string $data
  28. * @return $this
  29. */
  30. public function setBase64EncodedData($data);
  31. /**
  32. * Retrieve MIME type
  33. *
  34. * @return string
  35. */
  36. public function getType();
  37. /**
  38. * Set MIME type
  39. *
  40. * @param string $mimeType
  41. * @return $this
  42. */
  43. public function setType($mimeType);
  44. /**
  45. * Retrieve image name
  46. *
  47. * @return string
  48. */
  49. public function getName();
  50. /**
  51. * Set image name
  52. *
  53. * @param string $name
  54. * @return $this
  55. */
  56. public function setName($name);
  57. }