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-catalog
Setup
Patch
Schema
UpdateInventorySourceItem.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\InventoryCatalog\Setup\Patch\Schema
;
9
10
use
Magento\Framework\Setup\ModuleDataSetupInterface
;
11
use
Magento\Framework\Setup\Patch\SchemaPatchInterface
;
12
use
Magento\InventoryCatalog\Setup\Operation\UpdateInventorySourceItem
as Operation;
13
17
class
UpdateInventorySourceItem
implements
SchemaPatchInterface
18
{
22
private
$moduleDataSetup;
23
27
private
$operation;
28
33
public
function
__construct
(
34
ModuleDataSetupInterface
$moduleDataSetup,
35
Operation $operation
36
) {
37
$this->moduleDataSetup = $moduleDataSetup;
38
$this->operation = $operation;
39
}
40
44
public
function
apply
()
45
{
46
$this->operation->execute($this->moduleDataSetup);
47
48
return
$this;
49
}
50
54
public
static
function
getDependencies
()
55
{
56
return
[
57
InitializeDefaultStock::class,
58
];
59
}
60
64
public
function
getAliases
()
65
{
66
return
[];
67
}
68
}
Magento\InventoryCatalog\Setup\Patch\Schema
Definition:
CreateLegacyStockStatusView.php:8
Magento\InventoryCatalog\Setup\Patch\Schema\UpdateInventorySourceItem\getAliases
getAliases()
Definition:
UpdateInventorySourceItem.php:64
Magento\InventoryCatalog\Setup\Patch\Schema\UpdateInventorySourceItem\__construct
__construct(ModuleDataSetupInterface $moduleDataSetup, Operation $operation)
Definition:
UpdateInventorySourceItem.php:33
Magento\Framework\Setup\ModuleDataSetupInterface
Definition:
ModuleDataSetupInterface.php:14
Magento\InventoryCatalog\Setup\Operation\UpdateInventorySourceItem
Definition:
UpdateInventorySourceItem.php:19
Magento\InventoryCatalog\Setup\Patch\Schema\UpdateInventorySourceItem\getDependencies
static getDependencies()
Definition:
UpdateInventorySourceItem.php:54
Magento\Framework\Setup\Patch\SchemaPatchInterface
Definition:
SchemaPatchInterface.php:12
Magento\InventoryCatalog\Setup\Patch\Schema\UpdateInventorySourceItem\apply
apply()
Definition:
UpdateInventorySourceItem.php:44
Magento\InventoryCatalog\Setup\Patch\Schema\UpdateInventorySourceItem
Definition:
UpdateInventorySourceItem.php:17