GetSourceItemsBySkuInterface.php 434 B

12345678910111213141516171819202122
  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;
  8. /**
  9. * Sugar service for find SourceItems by SKU
  10. *
  11. * @api
  12. */
  13. interface GetSourceItemsBySkuInterface
  14. {
  15. /**
  16. * @param string $sku
  17. * @return \Magento\InventoryApi\Api\Data\SourceItemInterface[]
  18. */
  19. public function execute(string $sku): array;
  20. }