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
magento2-base
dev
tests
setup-integration
_files
Magento
TestSetupDeclarationModule3
revisions
patches_revision
LlNextChainPatch.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\TestSetupDeclarationModule3\Setup\Patch\Data
;
7
8
use
Magento\Framework\App\ResourceConnection
;
9
use
Magento\Framework\Setup\Patch\DataPatchInterface
;
10
use
Magento\Framework\Setup\Patch\PatchRevertableInterface
;
11
use
Magento\Framework\Setup\Patch\PatchVersionInterface
;
12
16
class
LlNextChainPatch
implements
17
DataPatchInterface
,
18
PatchRevertableInterface
,
19
PatchVersionInterface
20
{
24
private
$resourceConnection;
25
30
public
function
__construct
(
ResourceConnection
$resourceConnection)
31
{
32
$this->resourceConnection =
$resourceConnection
;
33
}
34
38
public
static
function
getVersion
()
39
{
40
return
'0.0.5'
;
41
}
42
46
public
function
getAliases
()
47
{
48
return
[];
49
}
50
54
public
function
apply
()
55
{
56
$adapter
= $this->resourceConnection->getConnection();
57
$adapter
->insertArray(
'reference_table'
, [
'for_patch_testing'
], [
'very_secret_string'
]);
58
}
59
60
public
function
revert
()
61
{
62
$adapter
= $this->resourceConnection->getConnection();
63
$adapter
->delete(
'reference_table'
, [
'for_patch_testing = ?'
=>
'very_secret_string'
]);
64
}
65
69
public
static
function
getDependencies
()
70
{
71
return
[
72
ZFirstPatch::class
73
];
74
}
75
}
Magento\TestSetupDeclarationModule3\Setup\Patch\Data\LlNextChainPatch
Definition:
LlNextChainPatch.php:16
Magento\Framework\Setup\Patch\PatchRevertableInterface
Definition:
PatchRevertableInterface.php:17
Magento\Framework\Setup\Patch\DataPatchInterface
Definition:
DataPatchInterface.php:12
$adapter
$adapter
Definition:
webapi_user.php:16
Magento\TestSetupDeclarationModule3\Setup\Patch\Data\LlNextChainPatch\apply
apply()
Definition:
LlNextChainPatch.php:54
Magento\TestSetupDeclarationModule3\Setup\Patch\Data
Definition:
BicPatch.php:6
Magento\TestSetupDeclarationModule3\Setup\Patch\Data\LlNextChainPatch\__construct
__construct(ResourceConnection $resourceConnection)
Definition:
LlNextChainPatch.php:30
Magento\TestSetupDeclarationModule3\Setup\Patch\Data\LlNextChainPatch\getAliases
getAliases()
Definition:
LlNextChainPatch.php:46
Magento\Framework\Setup\Patch\PatchVersionInterface
Definition:
PatchVersionInterface.php:13
$resourceConnection
$resourceConnection
Definition:
website_attribute_sync.php:32
Magento\Framework\App\ResourceConnection
Definition:
ResourceConnection.php:18
Magento\TestSetupDeclarationModule3\Setup\Patch\Data\LlNextChainPatch\revert
revert()
Definition:
LlNextChainPatch.php:60
Magento\Framework\App\ResourceConnection
Magento\TestSetupDeclarationModule3\Setup\Patch\Data\LlNextChainPatch\getDependencies
static getDependencies()
Definition:
LlNextChainPatch.php:69
Magento\TestSetupDeclarationModule3\Setup\Patch\Data\LlNextChainPatch\getVersion
static getVersion()
Definition:
LlNextChainPatch.php:38