6 declare(strict_types=1);
24 private $resourceConnection;
29 private $isSourceItemManagementAllowedForProductType;
34 private $getProductTypesBySkus;
48 $this->isSourceItemManagementAllowedForProductType = $isSourceItemManagementAllowedForProductType;
49 $this->getProductTypesBySkus = $getProductTypesBySkus;
62 $tableName = $this->resourceConnection->getTableName(
'inventory_low_stock_notification_configuration');
63 $connection = $this->resourceConnection->getConnection();
65 $types = $this->getProductTypesBySkus->execute(
$skus);
67 foreach ($types as $sku =>
$type) {
68 if ($this->isSourceItemManagementAllowedForProductType->execute(
$type)) {
const INVENTORY_NOTIFY_QTY
foreach($websiteCodes as $websiteCode) $skus
__construct(ResourceConnection $resourceConnection, GetProductTypesBySkusInterface $getProductTypesBySkus, IsSourceItemManagementAllowedForProductTypeInterface $isSourceItemManagementAllowedForProductType)
execute(array $skus, array $sources)