Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-inventory-low-quantity-notification
Model
SourceItemConfiguration
DeleteMultiple.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\InventoryLowQuantityNotification\Model\SourceItemConfiguration
;
9
10
use
Magento\Framework\Exception\CouldNotDeleteException
;
11
use
Magento\InventoryLowQuantityNotification\Model\ResourceModel\SourceItemConfiguration\DeleteMultiple
12
as DeleteResourceModel;
13
use
Magento\InventoryLowQuantityNotificationApi\Api\DeleteSourceItemsConfigurationInterface
;
14
use Psr\Log\LoggerInterface;
15
use Magento\InventoryLowQuantityNotificationApi\Api\DeleteSourceItemConfigurationInterface;
16
20
class
DeleteMultiple
implements
DeleteSourceItemsConfigurationInterface
21
{
25
private
$deleteResourceModel;
26
30
private
$logger;
31
37
public
function
__construct
(
38
DeleteResourceModel $deleteResourceModel,
39
LoggerInterface $logger
40
) {
41
$this->deleteResourceModel = $deleteResourceModel;
42
$this->logger =
$logger
;
43
}
44
48
public
function
execute
(array
$sourceItems
): void
49
{
50
try
{
51
$this->deleteResourceModel->execute(
$sourceItems
);
52
}
catch
(\Exception $e) {
53
$this->logger->error($e->getMessage());
54
throw
new
CouldNotDeleteException
(
__
(
'Could not delete SourceItems Configuration.'
), $e);
55
}
56
}
57
}
Magento\InventoryLowQuantityNotification\Model\SourceItemConfiguration\DeleteMultiple\execute
execute(array $sourceItems)
Definition:
DeleteMultiple.php:48
__
__()
Definition:
__.php:13
Magento\InventoryLowQuantityNotificationApi\Api\DeleteSourceItemsConfigurationInterface
Definition:
DeleteSourceItemsConfigurationInterface.php:15
$logger
$logger
Definition:
health_check.php:20
$sourceItems
$sourceItems
Definition:
source_items.php:76
Magento\InventoryLowQuantityNotification\Model\ResourceModel\SourceItemConfiguration\DeleteMultiple
Definition:
DeleteMultiple.php:17
Magento\InventoryLowQuantityNotification\Model\SourceItemConfiguration\DeleteMultiple\__construct
__construct(DeleteResourceModel $deleteResourceModel, LoggerInterface $logger)
Definition:
DeleteMultiple.php:37
Magento\InventoryLowQuantityNotification\Model\SourceItemConfiguration\DeleteMultiple
Definition:
DeleteMultiple.php:20
Magento\Framework\Exception\CouldNotDeleteException
Definition:
CouldNotDeleteException.php:12
Magento\InventoryLowQuantityNotification\Model\SourceItemConfiguration
Definition:
DeleteMultiple.php:8