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
cyclomatic_and_bic_revision
BicPatch.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
BicPatch
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
function
getVersion
()
39
{
40
return
'0.0.3'
;
41
}
42
46
public
function
getAliases
()
47
{
48
return
[];
49
}
50
54
public
function
apply
()
55
{
56
throw
new \Exception(
"This patch can`t be applied, as it was created to test BIC"
);
57
}
58
59
public
function
revert
()
60
{
61
}
62
66
public
static
function
getDependencies
()
67
{
68
return
[
69
RefBicPatch::class
70
];
71
}
72
}
Magento\Framework\Setup\Patch\PatchRevertableInterface
Definition:
PatchRevertableInterface.php:17
Magento\Framework\Setup\Patch\DataPatchInterface
Definition:
DataPatchInterface.php:12
Magento\TestSetupDeclarationModule3\Setup\Patch\Data\BicPatch\getDependencies
static getDependencies()
Definition:
BicPatch.php:66
Magento\TestSetupDeclarationModule3\Setup\Patch\Data
Definition:
BicPatch.php:6
Magento\TestSetupDeclarationModule3\Setup\Patch\Data\BicPatch\getVersion
getVersion()
Definition:
BicPatch.php:38
Magento\TestSetupDeclarationModule3\Setup\Patch\Data\BicPatch\__construct
__construct(ResourceConnection $resourceConnection)
Definition:
BicPatch.php:30
Magento\TestSetupDeclarationModule3\Setup\Patch\Data\BicPatch
Definition:
BicPatch.php:16
Magento\TestSetupDeclarationModule3\Setup\Patch\Data\BicPatch\getAliases
getAliases()
Definition:
BicPatch.php:46
Magento\Framework\Setup\Patch\PatchVersionInterface
Definition:
PatchVersionInterface.php:13
Magento\TestSetupDeclarationModule3\Setup\Patch\Data\BicPatch\apply
apply()
Definition:
BicPatch.php:54
$resourceConnection
$resourceConnection
Definition:
website_attribute_sync.php:32
Magento\Framework\App\ResourceConnection
Definition:
ResourceConnection.php:18
Magento\TestSetupDeclarationModule3\Setup\Patch\Data\BicPatch\revert
revert()
Definition:
BicPatch.php:59
Magento\Framework\App\ResourceConnection