ReplaceSalesChannelsForStockInterface.php 675 B

1234567891011121314151617181920212223242526
  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. /**
  9. * Implementation of links replacement between Stock and Sales Channels (Service Provider Interface - SPI)
  10. * Provide own implementation of this interface if you would like to replace channels management strategy
  11. *
  12. * @api
  13. */
  14. interface ReplaceSalesChannelsForStockInterface
  15. {
  16. /**
  17. * Replace Sales Channels for Stock
  18. *
  19. * @param array $salesChannels
  20. * @param int $stockId
  21. * @return void
  22. */
  23. public function execute(array $salesChannels, int $stockId): void;
  24. }