SourceItemSearchResultsInterface.php 778 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\InventoryApi\Api\Data;
  8. /**
  9. * Search results of Repository::getList method
  10. *
  11. * Used fully qualified namespaces in annotations for proper work of WebApi request parser
  12. *
  13. * @api
  14. */
  15. interface SourceItemSearchResultsInterface extends \Magento\Framework\Api\SearchResultsInterface
  16. {
  17. /**
  18. * Get source items list
  19. *
  20. * @return \Magento\InventoryApi\Api\Data\SourceItemInterface[]
  21. */
  22. public function getItems();
  23. /**
  24. * Set source items list
  25. *
  26. * @param \Magento\InventoryApi\Api\Data\SourceItemInterface[] $items
  27. * @return void
  28. */
  29. public function setItems(array $items);
  30. }