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
Unsigned.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\ColumnUnsignedAwareInterface
;
11
use
Magento\Framework\Setup\Declaration\Schema\Dto\ElementInterface
;
12
19
class
Unsigned
implements
DbDefinitionProcessorInterface
20
{
24
const
UNSIGNED_FLAG
=
'unsigned'
;
25
30
public
function
toDefinition
(
ElementInterface
$column)
31
{
32
return
$column->isUnsigned() ? strtoupper(self::UNSIGNED_FLAG) :
''
;
33
}
34
38
public
function
fromDefinition
(array
$data
)
39
{
40
$data
[
'unsigned'
] = stripos(
$data
[
'definition'
], self::UNSIGNED_FLAG) !==
false
;
41
return
$data
;
42
}
43
}
Magento\Framework\Setup\Declaration\Schema\Db\MySQL\Definition\Columns\Unsigned\toDefinition
toDefinition(ElementInterface $column)
Definition:
Unsigned.php:30
Magento\Framework\Setup\Declaration\Schema\Db\MySQL\Definition\Columns
Definition:
Blob.php:7
Magento\Framework\Setup\Declaration\Schema\Db\MySQL\Definition\Columns\Unsigned\UNSIGNED_FLAG
const UNSIGNED_FLAG
Definition:
Unsigned.php:24
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Framework\Setup\Declaration\Schema\Dto\Columns\ColumnUnsignedAwareInterface
Definition:
ColumnUnsignedAwareInterface.php:13
Magento\Framework\Setup\Declaration\Schema\Db\MySQL\Definition\Columns\Unsigned\fromDefinition
fromDefinition(array $data)
Definition:
Unsigned.php:38
Magento\Framework\Setup\Declaration\Schema\Db\MySQL\Definition\Columns\Unsigned
Definition:
Unsigned.php:19
Magento\Framework\Setup\Declaration\Schema\Dto\ElementInterface
Definition:
ElementInterface.php:15
Magento\Framework\Setup\Declaration\Schema\Db\DbDefinitionProcessorInterface
Definition:
DbDefinitionProcessorInterface.php:17