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
Factories
StringBinary.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Setup\Declaration\Schema\Dto\Factories
;
7
8
use
Magento\Framework\ObjectManagerInterface
;
9
15
class
StringBinary
implements
FactoryInterface
16
{
20
const
DEFAULT_TEXT_LENGTH
= 255;
21
25
private
$objectManager;
26
30
private
$className;
31
38
public
function
__construct
(
39
ObjectManagerInterface
$objectManager,
40
$className = \
Magento
\Framework\Setup\Declaration\
Schema
\Dto\Columns\StringBinary::class
41
) {
42
$this->objectManager =
$objectManager
;
43
$this->className = $className;
44
}
45
49
public
function
create
(array
$data
)
50
{
51
$data
[
'length'
] = isset(
$data
[
'length'
]) ? (int)
$data
[
'length'
] : self::DEFAULT_TEXT_LENGTH;
52
return
$this->objectManager->create($this->className,
$data
);
53
}
54
}
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Framework\Setup\Declaration\Schema\Dto\Factories
Definition:
Blob.php:6
Magento\Framework\Setup\Declaration\Schema\Dto\Factories\FactoryInterface
Definition:
FactoryInterface.php:13
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Framework\Setup\Declaration\Schema\Dto\Factories\StringBinary
Definition:
StringBinary.php:15
Magento
Magento\Framework\Setup\Declaration\Schema\Dto\Factories\StringBinary\create
create(array $data)
Definition:
StringBinary.php:49
Magento\Framework\Setup\Declaration\Schema\Dto\Factories\StringBinary\DEFAULT_TEXT_LENGTH
const DEFAULT_TEXT_LENGTH
Definition:
StringBinary.php:20
Magento\Framework\Setup\Declaration\Schema\Dto\Schema
Definition:
Schema.php:15
Magento\Framework\Setup\Declaration\Schema\Dto\Factories\StringBinary\__construct
__construct(ObjectManagerInterface $objectManager, $className=\Magento\Framework\Setup\Declaration\Schema\Dto\Columns\StringBinary::class)
Definition:
StringBinary.php:38