ComponentInterface.php 682 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Downloadable\Model;
  7. /**
  8. * Downloadable component interface
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface ComponentInterface
  14. {
  15. /**
  16. * Retrieve Base files path
  17. *
  18. * @return string
  19. */
  20. public function getBasePath();
  21. /**
  22. * Retrieve base temporary path
  23. *
  24. * @return string
  25. */
  26. public function getBaseTmpPath();
  27. /**
  28. * Retrieve links searchable data
  29. *
  30. * @param int $productId
  31. * @param int $storeId
  32. * @return array
  33. */
  34. public function getSearchableData($productId, $storeId);
  35. }