VideoContentInterface.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. use Magento\Framework\Api\ExtensibleDataInterface;
  8. /**
  9. * Video Content data interface
  10. *
  11. * @api
  12. * @since 100.0.2
  13. */
  14. interface VideoContentInterface extends ExtensibleDataInterface
  15. {
  16. const TYPE = 'media_type';
  17. const PROVIDER = 'video_provider';
  18. const URL = 'video_url';
  19. const TITLE = 'video_title';
  20. const DESCRIPTION = 'video_description';
  21. const METADATA = 'video_metadata';
  22. /**
  23. * Retrieve MIME type
  24. *
  25. * @return string
  26. */
  27. public function getMediaType();
  28. /**
  29. * Set MIME type
  30. *
  31. * @param string $mimeType
  32. * @return $this
  33. */
  34. public function setMediaType($mimeType);
  35. /**
  36. * Get provider
  37. *
  38. * @return string
  39. */
  40. public function getVideoProvider();
  41. /**
  42. * Set provider
  43. *
  44. * @param string $data
  45. * @return $this
  46. */
  47. public function setVideoProvider($data);
  48. /**
  49. * Get video URL
  50. *
  51. * @return string
  52. */
  53. public function getVideoUrl();
  54. /**
  55. * Set video URL
  56. *
  57. * @param string $data
  58. * @return $this
  59. */
  60. public function setVideoUrl($data);
  61. /**
  62. * Get Title
  63. *
  64. * @return string
  65. */
  66. public function getVideoTitle();
  67. /**
  68. * Set Title
  69. *
  70. * @param string $data
  71. * @return $this
  72. */
  73. public function setVideoTitle($data);
  74. /**
  75. * Get video Description
  76. *
  77. * @return string
  78. */
  79. public function getVideoDescription();
  80. /**
  81. * Set video Description
  82. *
  83. * @param string $data
  84. * @return $this
  85. */
  86. public function setVideoDescription($data);
  87. /**
  88. * Get Metadata
  89. *
  90. * @return string
  91. */
  92. public function getVideoMetadata();
  93. /**
  94. * Set Metadata
  95. *
  96. * @param string $data
  97. * @return $this
  98. */
  99. public function setVideoMetadata($data);
  100. }