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
Db
MySQL
Definition
Columns
Nullable.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\Setup\Declaration\Schema\Db\MySQL\Definition\Columns
;
8
9
use
Magento\Framework\Setup\Declaration\Schema\Db\DbDefinitionProcessorInterface
;
10
use
Magento\Framework\Setup\Declaration\Schema\Dto\Columns\ColumnNullableAwareInterface
;
11
use
Magento\Framework\Setup\Declaration\Schema\Dto\ElementInterface
;
12
18
class
Nullable
implements
DbDefinitionProcessorInterface
19
{
24
public
function
toDefinition
(
ElementInterface
$column)
25
{
26
if
($column instanceof
ColumnNullableAwareInterface
) {
27
return
$column->isNullable() ?
'NULL'
:
'NOT NULL'
;
28
}
29
30
return
''
;
31
}
32
36
public
function
fromDefinition
(array
$data
)
37
{
38
return
$data
;
39
}
40
}
Magento\Framework\Setup\Declaration\Schema\Db\MySQL\Definition\Columns\Nullable\toDefinition
toDefinition(ElementInterface $column)
Definition:
Nullable.php:24
Magento\Framework\Setup\Declaration\Schema\Dto\Columns\ColumnNullableAwareInterface
Definition:
ColumnNullableAwareInterface.php:12
Magento\Framework\Setup\Declaration\Schema\Db\MySQL\Definition\Columns
Definition:
Blob.php:7
Magento\Framework\Setup\Declaration\Schema\Db\MySQL\Definition\Columns\Nullable
Definition:
Nullable.php:18
Magento\Framework\Setup\Declaration\Schema\Db\MySQL\Definition\Columns\Nullable\fromDefinition
fromDefinition(array $data)
Definition:
Nullable.php:36
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Framework\Setup\Declaration\Schema\Dto\ElementInterface
Definition:
ElementInterface.php:15
Magento\Framework\Setup\Declaration\Schema\Db\DbDefinitionProcessorInterface
Definition:
DbDefinitionProcessorInterface.php:17