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
Columns
Integer.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Setup\Declaration\Schema\Dto\Columns
;
7
8
use
Magento\Framework\Setup\Declaration\Schema\Dto\Column
;
9
use
Magento\Framework\Setup\Declaration\Schema\Dto\ElementDiffAwareInterface
;
10
use
Magento\Framework\Setup\Declaration\Schema\Dto\Table
;
11
17
class
Integer
extends
Column
implements
18
ElementDiffAwareInterface
,
19
ColumnUnsignedAwareInterface
,
20
ColumnNullableAwareInterface
,
21
ColumnIdentityAwareInterface
,
22
ColumnDefaultAwareInterface
23
{
27
private
$nullable;
28
32
private
$default;
33
37
private
$unsigned;
41
private
$padding;
45
private
$identity;
46
63
public
function
__construct
(
64
string
$name,
65
string
$type,
66
Table
$table,
67
int
$padding,
68
bool
$nullable =
true
,
69
bool
$unsigned =
false
,
70
bool
$identity =
false
,
71
int
$default =
null
,
72
string
$comment =
null
,
73
string
$onCreate =
null
74
) {
75
parent::__construct(
$name
,
$type
,
$table
, $comment, $onCreate);
76
$this->nullable = $nullable;
77
$this->
default
= $default;
78
$this->
unsigned
= $unsigned;
79
$this->padding = $padding;
80
$this->identity = $identity;
81
}
82
88
public
function
getPadding
()
89
{
90
return
$this->padding;
91
}
92
98
public
function
isNullable
()
99
{
100
return
$this->nullable;
101
}
102
109
public
function
getDefault
()
110
{
111
return
$this->default;
112
}
113
119
public
function
isUnsigned
()
120
{
121
return
$this->unsigned;
122
}
123
129
public
function
isIdentity
()
130
{
131
return
$this->identity;
132
}
133
137
public
function
getDiffSensitiveParams
()
138
{
139
return
[
140
'type'
=> $this->
getType
(),
141
'nullable'
=> $this->
isNullable
(),
142
'padding'
=> $this->
getPadding
(),
143
'unsigned'
=> $this->
isUnsigned
(),
144
'identity'
=> $this->
isIdentity
(),
145
'default'
=> $this->
getDefault
(),
146
'comment'
=> $this->
getComment
()
147
];
148
}
149
}
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\Columns\Integer\isNullable
isNullable()
Definition:
Integer.php:98
Magento\Framework\Setup\Declaration\Schema\Dto\Columns
Definition:
Blob.php:6
Magento\Framework\Setup\Declaration\Schema\Dto\Columns\Integer\isIdentity
isIdentity()
Definition:
Integer.php:129
Magento\Framework\Setup\Declaration\Schema\Dto\Columns\ColumnNullableAwareInterface
Definition:
ColumnNullableAwareInterface.php:12
Magento\Framework\Setup\Declaration\Schema\Dto\Table
Definition:
Table.php:17
Magento\Framework\Setup\Declaration\Schema\Dto\Columns\Integer\getPadding
getPadding()
Definition:
Integer.php:88
Magento\Framework\Setup\Declaration\Schema\Dto\Columns\ColumnDefaultAwareInterface
Definition:
ColumnDefaultAwareInterface.php:11
$type
$type
Definition:
item.phtml:13
Magento\Framework\Setup\Declaration\Schema\Dto\Columns\Integer\isUnsigned
isUnsigned()
Definition:
Integer.php:119
Magento\Framework\Setup\Declaration\Schema\Dto\Column\getComment
getComment()
Definition:
Column.php:88
Magento\Framework\Setup\Declaration\Schema\Dto\Columns\ColumnUnsignedAwareInterface
Definition:
ColumnUnsignedAwareInterface.php:13
Magento\Framework\Setup\Declaration\Schema\Dto\Columns\Integer
Definition:
Integer.php:17
Magento\Framework\Setup\Declaration\Schema\Dto\ElementDiffAwareInterface
Definition:
ElementDiffAwareInterface.php:13
Magento\Framework\Setup\Declaration\Schema\Dto\Columns\Integer\__construct
__construct(string $name, string $type, Table $table, int $padding, bool $nullable=true, bool $unsigned=false, bool $identity=false, int $default=null, string $comment=null, string $onCreate=null)
Definition:
Integer.php:63
Magento\Framework\Setup\Declaration\Schema\Dto\Columns\Integer\getDiffSensitiveParams
getDiffSensitiveParams()
Definition:
Integer.php:137
$table
$table
Definition:
trigger.php:14
Magento\Framework\Setup\Declaration\Schema\Dto\Columns\Integer\getDefault
getDefault()
Definition:
Integer.php:109
Magento\Framework\Setup\Declaration\Schema\Dto\Columns\ColumnIdentityAwareInterface
Definition:
ColumnIdentityAwareInterface.php:11
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14