6 declare(strict_types=1);
26 private $resourceConnection;
31 private $bulkZeroLegacyStockItem;
36 private $defaultSourceProvider;
50 $this->bulkZeroLegacyStockItem = $bulkZeroLegacyStockItem;
63 $connection = $this->resourceConnection->getConnection();
74 if (in_array($this->defaultSourceProvider->getCode(), $sourceCodes)) {
75 $this->bulkZeroLegacyStockItem->execute(
$skus);
foreach($websiteCodes as $websiteCode) $skus
execute(array $skus, array $sourceCodes)
const TABLE_NAME_SOURCE_ITEM
__construct(ResourceConnection $resourceConnection, DefaultSourceProviderInterface $defaultSourceProvider, BulkZeroLegacyStockItem $bulkZeroLegacyStockItem)