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
ZFirstPatch.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\Setup\Exception
;
10
use
Magento\Framework\Setup\Patch\DataPatchInterface
;
11
use
Magento\Framework\Setup\Patch\PatchRevertableInterface
;
12
use
Magento\Framework\Setup\Patch\PatchVersionInterface
;
13
18
class
ZFirstPatch
implements
19
DataPatchInterface
,
20
PatchVersionInterface
,
21
PatchRevertableInterface
22
{
26
private
$resourceConnection;
27
32
public
function
__construct
(
ResourceConnection
$resourceConnection)
33
{
34
$this->resourceConnection =
$resourceConnection
;
35
}
36
40
public
static
function
getVersion
()
41
{
42
return
'0.0.3'
;
43
}
44
48
public
function
getAliases
()
49
{
50
return
[];
51
}
52
53
public
function
revert
()
54
{
55
}
56
60
public
function
apply
()
61
{
62
throw
new
Exception
(
'This patch should be covered by old script!'
);
63
}
64
68
public
static
function
getDependencies
()
69
{
70
return
[];
71
}
72
}
Magento\TestSetupDeclarationModule3\Setup\Patch\Data\ZFirstPatch\getDependencies
static getDependencies()
Definition:
ZFirstPatch.php:68
Magento\Framework\Setup\Patch\PatchRevertableInterface
Definition:
PatchRevertableInterface.php:17
Magento\Framework\Setup\Patch\DataPatchInterface
Definition:
DataPatchInterface.php:12
Magento\TestSetupDeclarationModule3\Setup\Patch\Data\ZFirstPatch\getVersion
static getVersion()
Definition:
ZFirstPatch.php:40
Magento\TestSetupDeclarationModule3\Setup\Patch\Data\ZFirstPatch\apply
apply()
Definition:
ZFirstPatch.php:60
Magento\TestSetupDeclarationModule3\Setup\Patch\Data\ZFirstPatch\__construct
__construct(ResourceConnection $resourceConnection)
Definition:
ZFirstPatch.php:32
Magento\TestSetupDeclarationModule3\Setup\Patch\Data\ZFirstPatch
Definition:
ZFirstPatch.php:18
Magento\TestSetupDeclarationModule3\Setup\Patch\Data
Definition:
BicPatch.php:6
Magento\TestSetupDeclarationModule3\Setup\Patch\Data\ZFirstPatch\getAliases
getAliases()
Definition:
ZFirstPatch.php:48
Magento\Framework\Setup\Patch\PatchVersionInterface
Definition:
PatchVersionInterface.php:13
Magento\Setup\Exception
Definition:
Exception.php:14
$resourceConnection
$resourceConnection
Definition:
website_attribute_sync.php:32
Magento\Framework\App\ResourceConnection
Definition:
ResourceConnection.php:18
Magento\TestSetupDeclarationModule3\Setup\Patch\Data\ZFirstPatch\revert
revert()
Definition:
ZFirstPatch.php:53
Magento\Framework\App\ResourceConnection