Completed
Pull Request — develop (#3533)
by
unknown
65:15
created

MariaDb1043Platform   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 3
dl 0
loc 16
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A hasNativeJsonType() 0 3 1
A getJsonTypeDeclarationSQL() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\DBAL\Platforms;
6
7
/**
8
 * Provides the behavior, features and SQL dialect of the MariaDB 10.4 (10.4.3 RC) database platform.
9
 *
10
 * Note: Should not be used with versions prior to 10.4.3.
11
 */
12
final class MariaDb1043Platform extends MariaDb1027Platform
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17
    public function hasNativeJsonType() : bool
18
    {
19
        return true;
20
    }
21
22
    /**
23
     * {@inheritdoc}
24
     */
25
    public function getJsonTypeDeclarationSQL(array $field) : string
26
    {
27
        return 'JSON';
28
    }
29
}
30