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

MySQL80Platform::supportsNamedPrimaryConstraints()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
ccs 0
cts 0
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
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