StockCollectionInterface.php 929 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * Stock collection interface
  8. */
  9. namespace Magento\CatalogInventory\Api\Data;
  10. use Magento\Framework\Api\SearchResultsInterface;
  11. /**
  12. * Interface StockCollectionInterface
  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 StockCollectionInterface extends SearchResultsInterface
  21. {
  22. /**
  23. * Get items
  24. *
  25. * @return \Magento\CatalogInventory\Api\Data\StockInterface[]
  26. */
  27. public function getItems();
  28. /**
  29. * Set items
  30. *
  31. * @param \Magento\CatalogInventory\Api\Data\StockInterface[] $items
  32. * @return $this
  33. */
  34. public function setItems(array $items);
  35. }