File tree Expand file tree Collapse file tree 3 files changed +15
-10
lines changed
lib/internal/Magento/Framework/Setup/Declaration/Schema
Db/MySQL/Definition/Columns Expand file tree Collapse file tree 3 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 12
12
13
13
/**
14
14
* Process json data type.
15
- *
16
- * @inheritdoc
17
15
*/
18
16
class Json implements DbDefinitionProcessorInterface
19
17
{
@@ -64,7 +62,10 @@ public function toDefinition(ElementInterface $column)
64
62
}
65
63
66
64
/**
67
- * @inheritdoc
65
+ * Returns an array of column definitions
66
+ *
67
+ * @param array $data
68
+ * @return array
68
69
*/
69
70
public function fromDefinition (array $ data )
70
71
{
Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+
6
7
namespace Magento \Framework \Setup \Declaration \Schema \Dto \Columns ;
7
8
8
9
use Magento \Framework \Setup \Declaration \Schema \Dto \Column ;
9
10
use Magento \Framework \Setup \Declaration \Schema \Dto \ElementDiffAwareInterface ;
10
11
use Magento \Framework \Setup \Declaration \Schema \Dto \Table ;
11
12
12
13
/**
14
+ * Json
15
+ *
13
16
* Text column.
14
17
* Declared in SQL, like: JSON
15
18
*/
16
- class Json extends Column implements
17
- ElementDiffAwareInterface,
18
- ColumnNullableAwareInterface
19
+ class Json extends Column implements ElementDiffAwareInterface, ColumnNullableAwareInterface
19
20
{
20
- /**Json
21
+ /**
21
22
* @var bool
22
23
*/
23
24
private $ nullable ;
Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+
6
7
namespace Magento \Framework \Setup \Declaration \Schema \Dto \Factories ;
7
8
8
9
use Magento \Framework \ObjectManagerInterface ;
12
13
*/
13
14
class Json implements FactoryInterface
14
15
{
15
-
16
16
/**
17
17
* @var ObjectManagerInterface
18
18
*/
@@ -27,7 +27,7 @@ class Json implements FactoryInterface
27
27
* Constructor.
28
28
*
29
29
* @param ObjectManagerInterface $objectManager
30
- * @param string $className
30
+ * @param string $className
31
31
*/
32
32
public function __construct (
33
33
ObjectManagerInterface $ objectManager ,
@@ -38,7 +38,10 @@ public function __construct(
38
38
}
39
39
40
40
/**
41
- * {@inheritdoc}
41
+ * Create element using definition data array.
42
+ *
43
+ * @param array $data
44
+ * @return \Magento\Framework\Setup\Declaration\Schema\Dto\ElementInterface|mixed
42
45
*/
43
46
public function create (array $ data )
44
47
{
You can’t perform that action at this time.
0 commit comments