Failed Conditions
Push — master ( 379085...b45ed5 )
by Marco
54s queued 28s
created

SQLServer2008Keywords   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 50%

Importance

Changes 0
Metric Value
wmc 2
eloc 2
dl 0
loc 18
ccs 2
cts 4
cp 0.5
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A getKeywords() 0 3 1
1
<?php
2
3
namespace Doctrine\DBAL\Platforms\Keywords;
4
5
use function array_merge;
6
7
/**
8
 * Microsoft SQL Server 2008 reserved keyword dictionary.
9
 *
10
 * @link    www.doctrine-project.com
11
 */
12
class SQLServer2008Keywords extends SQLServer2005Keywords
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17
    public function getName()
18
    {
19
        return 'SQLServer2008';
20
    }
21
22
    /**
23
     * {@inheritdoc}
24
     *
25
     * @link http://msdn.microsoft.com/en-us/library/ms189822%28v=sql.100%29.aspx
26
     */
27 2143
    protected function getKeywords()
28
    {
29 2143
        return array_merge(parent::getKeywords(), ['MERGE']);
30
    }
31
}
32