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
framework
Setup
Declaration
Schema
Dto
Constraints
Internal.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Setup\Declaration\Schema\Dto\Constraints
;
7
8
use
Magento\Framework\Setup\Declaration\Schema\Dto\Column
;
9
use
Magento\Framework\Setup\Declaration\Schema\Dto\Constraint
;
10
use
Magento\Framework\Setup\Declaration\Schema\Dto\ElementDiffAwareInterface
;
11
use
Magento\Framework\Setup\Declaration\Schema\Dto\Table
;
12
17
class
Internal
extends
Constraint
implements
ElementDiffAwareInterface
18
{
22
const
PRIMARY_NAME
=
"PRIMARY"
;
23
27
private
$columns;
28
38
public
function
__construct
(
39
$name,
40
$type,
41
Table
$table,
42
string
$nameWithoutPrefix,
43
array $columns
44
) {
45
parent::__construct(
$name
,
$type
,
$table
, $nameWithoutPrefix);
46
$this->columns =
$columns
;
47
}
48
54
public
function
getColumns
()
55
{
56
return
$this->columns;
57
}
58
64
public
function
getColumnNames
()
65
{
66
return
array_map(
67
function
(
Column
$column) {
68
return
$column->
getName
();
69
},
70
$this->
getColumns
()
71
);
72
}
73
77
public
function
getDiffSensitiveParams
()
78
{
79
return
[
80
'type'
=> $this->
getType
(),
81
'columns'
=> $this->
getColumnNames
()
82
];
83
}
84
}
Magento\Framework\Setup\Declaration\Schema\Dto\ElementInterface\getType
getType()
Magento\Framework\Setup\Declaration\Schema\Dto\Column
Definition:
Column.php:11
Magento\Framework\Setup\Declaration\Schema\Dto\Constraints\Internal\PRIMARY_NAME
const PRIMARY_NAME
Definition:
Internal.php:22
Magento\Framework\Setup\Declaration\Schema\Dto\GenericElement\getName
getName()
Definition:
GenericElement.php:50
Magento\Framework\Setup\Declaration\Schema\Dto\Constraints\Internal\getColumnNames
getColumnNames()
Definition:
Internal.php:64
Magento\Framework\Setup\Declaration\Schema\Dto\Table
Definition:
Table.php:17
Magento\Framework\Setup\Declaration\Schema\Dto\Constraint
Definition:
Constraint.php:12
Magento\Framework\Setup\Declaration\Schema\Dto\Constraints\Internal\__construct
__construct( $name, $type, Table $table, string $nameWithoutPrefix, array $columns)
Definition:
Internal.php:38
$columns
$columns
Definition:
default.phtml:15
$type
$type
Definition:
item.phtml:13
Magento\Framework\Setup\Declaration\Schema\Dto\Constraints
Definition:
Internal.php:6
Magento\Framework\Setup\Declaration\Schema\Dto\ElementDiffAwareInterface
Definition:
ElementDiffAwareInterface.php:13
$table
$table
Definition:
trigger.php:14
Magento\Framework\Setup\Declaration\Schema\Dto\Constraints\Internal
Definition:
Internal.php:17
Magento\Framework\Setup\Declaration\Schema\Dto\Constraints\Internal\getColumns
getColumns()
Definition:
Internal.php:54
Magento\Framework\Setup\Declaration\Schema\Dto\Constraints\Internal\getDiffSensitiveParams
getDiffSensitiveParams()
Definition:
Internal.php:77
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14