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
StringBinary.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
StringBinary
extends
Column
implements
18
ElementDiffAwareInterface
,
19
ColumnNullableAwareInterface
,
20
ColumnDefaultAwareInterface
21
{
25
private
$nullable;
26
30
private
$default;
31
35
private
$length;
36
49
public
function
__construct
(
50
string
$name,
51
string
$type,
52
Table
$table,
53
int
$length,
54
bool
$nullable =
true
,
55
string
$default =
null
,
56
string
$comment =
null
,
57
string
$onCreate =
null
58
) {
59
parent::__construct(
$name
,
$type
,
$table
, $comment, $onCreate);
60
$this->nullable = $nullable;
61
$this->
default
= $default;
62
$this->length = $length;
63
}
64
70
public
function
isNullable
()
71
{
72
return
$this->nullable;
73
}
74
81
public
function
getDefault
()
82
{
83
return
$this->default;
84
}
85
91
public
function
getLength
()
92
{
93
return
$this->length;
94
}
95
99
public
function
getDiffSensitiveParams
()
100
{
101
return
[
102
'type'
=> $this->
getType
(),
103
'nullable'
=> $this->
isNullable
(),
104
'default'
=> $this->
getDefault
(),
105
'length'
=> $this->
getLength
(),
106
'comment'
=> $this->
getComment
()
107
];
108
}
109
}
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\StringBinary\isNullable
isNullable()
Definition:
StringBinary.php:70
Magento\Framework\Setup\Declaration\Schema\Dto\Columns
Definition:
Blob.php:6
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\StringBinary\getLength
getLength()
Definition:
StringBinary.php:91
Magento\Framework\Setup\Declaration\Schema\Dto\Columns\ColumnDefaultAwareInterface
Definition:
ColumnDefaultAwareInterface.php:11
$type
$type
Definition:
item.phtml:13
Magento\Framework\Setup\Declaration\Schema\Dto\Column\getComment
getComment()
Definition:
Column.php:88
Magento\Framework\Setup\Declaration\Schema\Dto\Columns\StringBinary\__construct
__construct(string $name, string $type, Table $table, int $length, bool $nullable=true, string $default=null, string $comment=null, string $onCreate=null)
Definition:
StringBinary.php:49
Magento\Framework\Setup\Declaration\Schema\Dto\ElementDiffAwareInterface
Definition:
ElementDiffAwareInterface.php:13
Magento\Framework\Setup\Declaration\Schema\Dto\Columns\StringBinary\getDiffSensitiveParams
getDiffSensitiveParams()
Definition:
StringBinary.php:99
Magento\Framework\Setup\Declaration\Schema\Dto\Columns\StringBinary
Definition:
StringBinary.php:17
$table
$table
Definition:
trigger.php:14
Magento\Framework\Setup\Declaration\Schema\Dto\Columns\StringBinary\getDefault
getDefault()
Definition:
StringBinary.php:81
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14