StockRegistryProviderInterface.php 797 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\CatalogInventory\Model\Spi;
  7. /**
  8. * Interface StockRegistryProviderInterface
  9. */
  10. interface StockRegistryProviderInterface
  11. {
  12. /**
  13. * @param int $scopeId
  14. * @return \Magento\CatalogInventory\Api\Data\StockInterface
  15. */
  16. public function getStock($scopeId);
  17. /**
  18. * @param int $productId
  19. * @param int $scopeId
  20. * @return \Magento\CatalogInventory\Api\Data\StockItemInterface
  21. */
  22. public function getStockItem($productId, $scopeId);
  23. /**
  24. * @param int $productId
  25. * @param int $scopeId
  26. * @return \Magento\CatalogInventory\Api\Data\StockStatusInterface
  27. */
  28. public function getStockStatus($productId, $scopeId);
  29. }