6 declare(strict_types=1);
12 use Magento\InventorySalesApi\Api\Data\SalesChannelInterfaceFactory;
24 private $getStockBySalesChannel;
29 private $salesChannelInterfaceFactory;
37 SalesChannelInterfaceFactory $salesChannelInterfaceFactory
39 $this->getStockBySalesChannel = $getStockBySalesChannel;
40 $this->salesChannelInterfaceFactory = $salesChannelInterfaceFactory;
48 $salesChannel = $this->salesChannelInterfaceFactory->create([
54 return $this->getStockBySalesChannel->execute($salesChannel);
__construct(GetStockBySalesChannelInterface $getStockBySalesChannel, SalesChannelInterfaceFactory $salesChannelInterfaceFactory)
execute(string $type, string $code)