Passed
Pull Request — 2.10.x (#3936)
by Asmir
05:07
created

MySQL80Platform   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 3
c 1
b 0
f 0
dl 0
loc 16
ccs 2
cts 2
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getReservedKeywordsClass() 0 3 1
A supportsNamedPrimaryConstraints() 0 3 1
1
<?php
2
3
namespace Doctrine\DBAL\Platforms;
4
5
/**
6
 * Provides the behavior, features and SQL dialect of the MySQL 8.0 (8.0 GA) database platform.
7
 */
8
class MySQL80Platform extends MySQL57Platform
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13 19
    protected function getReservedKeywordsClass()
14
    {
15 19
        return Keywords\MySQL80Keywords::class;
16
    }
17
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public function supportsNamedPrimaryConstraints()
22
    {
23
        return true;
24
    }
25
}
26