StockItemCollectionInterface.php 1.1 KB

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