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

PostgreSQL94Keywords::getKeywords()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Doctrine\DBAL\Platforms\Keywords;
4
5
use function array_diff;
6
use function array_merge;
7
8
/**
9
 * PostgreSQL 9.4 reserved keywords list.
10
 *
11
 * @link   www.doctrine-project.org
12
 */
13
class PostgreSQL94Keywords extends PostgreSQL92Keywords
14
{
15
    /**
16
     * {@inheritdoc}
17
     */
18
    public function getName()
19
    {
20
        return 'PostgreSQL94';
21
    }
22
23
    /**
24
     * {@inheritdoc}
25
     *
26
     * @link http://www.postgresql.org/docs/9.4/static/sql-keywords-appendix.html
27
     */
28 1932
    protected function getKeywords()
29
    {
30 1932
        $parentKeywords = array_diff(parent::getKeywords(), ['OVER']);
31
32 1932
        return array_merge($parentKeywords, ['LATERAL']);
33
    }
34
}
35