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
TestSetupDeclarationModule5
revisions
patches
SomePatch.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\TestSetupDeclarationModule5\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
17
class
SomePatch
implements
18
DataPatchInterface
,
19
PatchRevertableInterface
,
20
PatchVersionInterface
21
{
25
private
$resourceConnection;
26
31
public
function
__construct
(
ResourceConnection
$resourceConnection)
32
{
33
$this->resourceConnection =
$resourceConnection
;
34
}
35
39
public
static
function
getVersion
()
40
{
41
return
'1.0.5'
;
42
}
43
47
public
function
getAliases
()
48
{
49
return
[];
50
}
51
55
public
function
apply
()
56
{
57
$adapter
= $this->resourceConnection->getConnection();
58
$adapter
->insert(
'test_table'
, [
'varchar'
=>
"_ref"
,
'varbinary'
=> 0101010]);
59
}
60
61
public
function
revert
()
62
{
63
}
64
68
public
static
function
getDependencies
()
69
{
70
return
[];
71
}
72
}
Magento\TestSetupDeclarationModule5\Setup\Patch\Data\SomePatch\revert
revert()
Definition:
SomePatch.php:61
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\TestSetupDeclarationModule5\Setup\Patch\Data\SomePatch\getAliases
getAliases()
Definition:
SomePatch.php:47
Magento\TestSetupDeclarationModule5\Setup\Patch\Data\SomePatch\__construct
__construct(ResourceConnection $resourceConnection)
Definition:
SomePatch.php:31
Magento\TestSetupDeclarationModule5\Setup\Patch\Data\SomePatch\getVersion
static getVersion()
Definition:
SomePatch.php:39
Magento\TestSetupDeclarationModule5\Setup\Patch\Data\SomePatch\getDependencies
static getDependencies()
Definition:
SomePatch.php:68
Magento\Framework\Setup\Patch\PatchVersionInterface
Definition:
PatchVersionInterface.php:13
Magento\TestSetupDeclarationModule5\Setup\Patch\Data
Definition:
SomePatch.php:6
$resourceConnection
$resourceConnection
Definition:
website_attribute_sync.php:32
Magento\Framework\App\ResourceConnection
Definition:
ResourceConnection.php:18
Magento\TestSetupDeclarationModule5\Setup\Patch\Data\SomePatch\apply
apply()
Definition:
SomePatch.php:55
Magento\TestSetupDeclarationModule5\Setup\Patch\Data\SomePatch
Definition:
SomePatch.php:17
Magento\Framework\App\ResourceConnection