Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__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) | |
getPadding () | |
isNullable () | |
getDefault () | |
isUnsigned () | |
isIdentity () | |
getDiffSensitiveParams () | |
![]() | |
__construct (string $name, string $type, Table $table, string $comment=null, string $onCreate=null) | |
getTable () | |
getElementType () | |
getOnCreate () | |
getComment () | |
![]() | |
__construct (string $name, string $type) | |
getName () | |
getType () | |
Additional Inherited Members | |
![]() | |
const | TYPE = 'column' |
Integer column. Declared in SQL, like INT(11) or BIGINT(20). Where digit is padding, how many zeros should be added before first non-zero digit.
Definition at line 17 of file Integer.php.
__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 |
||
) |
Constructor.
string | $name | |
string | $type | |
Table | $table | |
int | $padding | |
bool | $nullable | |
bool | $unsigned | |
bool | $identity | |
float | int | $default | |
string | null | $comment | |
string | null | $onCreate | @SuppressWarnings(PHPMD.ExcessiveParameterList) |
Definition at line 63 of file Integer.php.
getDefault | ( | ) |
Return default value. Note: default value should be int.
Implements ColumnDefaultAwareInterface.
Definition at line 109 of file Integer.php.
getDiffSensitiveParams | ( | ) |
Return sensitive params, with respect of which we will compare db and xml For instance, padding => '2' identity => nullSuch params as name, renamedTo, disabled, tableName should be avoided here. As this params are system and must not participate in comparison at all.
Implements ElementDiffAwareInterface.
Definition at line 137 of file Integer.php.
getPadding | ( | ) |
isIdentity | ( | ) |
Define whether column can be autoincrement or not.
Implements ColumnIdentityAwareInterface.
Definition at line 129 of file Integer.php.
isNullable | ( | ) |
Check whether column can be nullable.
Implements ColumnNullableAwareInterface.
Definition at line 98 of file Integer.php.
isUnsigned | ( | ) |
Check whether element is unsigned or not.
Implements ColumnUnsignedAwareInterface.
Definition at line 119 of file Integer.php.