StockStatusCollectionInterface.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\CatalogInventory\Api\Data;
  7. use Magento\Framework\Api\SearchResultsInterface;
  8. /**
  9. * Stock Status collection interface
  10. * @api
  11. * @since 100.0.2
  12. *
  13. * @deprecated 100.3.0 Replaced with Multi Source Inventory
  14. * @link https://devdocs.magento.com/guides/v2.3/inventory/index.html
  15. * @link https://devdocs.magento.com/guides/v2.3/inventory/catalog-inventory-replacements.html
  16. */
  17. interface StockStatusCollectionInterface extends SearchResultsInterface
  18. {
  19. /**
  20. * Get items
  21. *
  22. * @return \Magento\CatalogInventory\Api\Data\StockStatusInterface[]
  23. */
  24. public function getItems();
  25. /**
  26. * Sets items
  27. *
  28. * @param \Magento\CatalogInventory\Api\Data\StockStatusInterface[] $items
  29. * @return $this
  30. */
  31. public function setItems(array $items);
  32. /**
  33. * Get search criteria.
  34. *
  35. * @return \Magento\CatalogInventory\Api\StockStatusCriteriaInterface
  36. */
  37. public function getSearchCriteria();
  38. }