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
Constraint.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Setup\Declaration\Schema\Dto
;
7
12
class
Constraint
extends
GenericElement
implements
13
ElementInterface
,
14
TableElementInterface
15
{
20
const
TYPE
=
'constraint'
;
21
25
const
PRIMARY_TYPE
=
'primary'
;
26
30
const
UNIQUE_TYPE
=
'unique'
;
31
35
private
$table;
36
40
private
$nameWithoutPrefix;
41
50
public
function
__construct
(
51
string
$name,
52
string
$type,
53
Table
$table,
54
string
$nameWithoutPrefix
55
) {
56
parent::__construct(
$name
,
$type
);
57
$this->table =
$table
;
58
$this->nameWithoutPrefix = $nameWithoutPrefix;
59
}
60
66
public
function
getTable
()
67
{
68
return
$this->table;
69
}
70
74
public
function
getElementType
()
75
{
76
return
self::TYPE
;
77
}
78
84
public
function
getNameWithoutPrefix
()
85
{
86
return
$this->nameWithoutPrefix;
87
}
88
}
Magento\Framework\Setup\Declaration\Schema\Dto\Constraint\getElementType
getElementType()
Definition:
Constraint.php:74
Magento\Framework\Setup\Declaration\Schema\Dto\Constraint\__construct
__construct(string $name, string $type, Table $table, string $nameWithoutPrefix)
Definition:
Constraint.php:50
Magento\Framework\Setup\Declaration\Schema\Dto
Definition:
Column.php:6
Magento\Framework\Setup\Declaration\Schema\Dto\Constraint\getNameWithoutPrefix
getNameWithoutPrefix()
Definition:
Constraint.php:84
Magento\Framework\Setup\Declaration\Schema\Dto\Table
Definition:
Table.php:17
Magento\Framework\Setup\Declaration\Schema\Dto\GenericElement
Definition:
GenericElement.php:18
Magento\Framework\Setup\Declaration\Schema\Dto\Constraint
Definition:
Constraint.php:12
Magento\Framework\Setup\Declaration\Schema\Dto\Constraint\getTable
getTable()
Definition:
Constraint.php:66
$type
$type
Definition:
item.phtml:13
Magento\Framework\Setup\Declaration\Schema\Dto\Constraint\TYPE
const TYPE
Definition:
Constraint.php:20
$table
$table
Definition:
trigger.php:14
Magento\Framework\Setup\Declaration\Schema\Dto\ElementInterface
Definition:
ElementInterface.php:15
Magento\Framework\Setup\Declaration\Schema\Dto\TableElementInterface
Definition:
TableElementInterface.php:13
Magento\Framework\Setup\Declaration\Schema\Dto\Constraint\UNIQUE_TYPE
const UNIQUE_TYPE
Definition:
Constraint.php:30
Magento\Framework\Setup\Declaration\Schema\Dto\Constraint\PRIMARY_TYPE
const PRIMARY_TYPE
Definition:
Constraint.php:25
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14