DataProviderInterface.php 807 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\App\Rss;
  7. /**
  8. * @api
  9. * @since 100.0.2
  10. */
  11. interface DataProviderInterface
  12. {
  13. /**
  14. * Check if RSS feed allowed
  15. *
  16. * @return mixed
  17. */
  18. public function isAllowed();
  19. /**
  20. * Get RSS feed items
  21. *
  22. * @return array
  23. */
  24. public function getRssData();
  25. /**
  26. * @return string
  27. */
  28. public function getCacheKey();
  29. /**
  30. * @return int
  31. */
  32. public function getCacheLifetime();
  33. /**
  34. * Get information about all feeds this Data Provider is responsible for
  35. *
  36. * @return array
  37. */
  38. public function getFeeds();
  39. /**
  40. * @return bool
  41. */
  42. public function isAuthRequired();
  43. }