GetAssignedSalesChannelsForStockInterface.php 677 B

123456789101112131415161718192021222324252627
  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\InventorySalesApi\Model;
  8. use Magento\InventorySalesApi\Api\Data\SalesChannelInterface;
  9. /**
  10. * Get assigned Sales Channels for Stock (Service Provider Interface - SPI)
  11. * Provide own implementation of this interface if you would like to replace channels management strategy
  12. *
  13. * @api
  14. */
  15. interface GetAssignedSalesChannelsForStockInterface
  16. {
  17. /**
  18. * Get linked sales channels for Stock
  19. *
  20. * @param int $stockId
  21. * @return SalesChannelInterface[]
  22. */
  23. public function execute(int $stockId): array;
  24. }