6 declare(strict_types=1);
28 private $resourceConnection;
33 private $isSourceItemManagementAllowedForProductType;
38 private $getProductTypesBySkus;
52 $this->isSourceItemManagementAllowedForProductType = $isSourceItemManagementAllowedForProductType;
53 $this->getProductTypesBySkus = $getProductTypesBySkus;
64 $types = $this->getProductTypesBySkus->execute(
$skus);
66 $connection = $this->resourceConnection->getConnection();
70 foreach ($types as $sku =>
$type) {
71 if ($this->isSourceItemManagementAllowedForProductType->execute(
$type)) {
execute(array $skus, array $sourceCodes)
foreach($websiteCodes as $websiteCode) $skus
const STATUS_OUT_OF_STOCK
const TABLE_NAME_SOURCE_ITEM
__construct(ResourceConnection $resourceConnection, GetProductTypesBySkusInterface $getProductTypesBySkus, IsSourceItemManagementAllowedForProductTypeInterface $isSourceItemManagementAllowedForProductType)