Completed
Push — master ( 9aaed4...af3d52 )
by
unknown
04:30
created

CrateKeywords::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * Licensed to CRATE Technology GmbH("Crate") under one or more contributor
4
 * license agreements.  See the NOTICE file distributed with this work for
5
 * additional information regarding copyright ownership.  Crate licenses
6
 * this file to you under the Apache License, Version 2.0 (the "License");
7
 * you may not use this file except in compliance with the License.  You may
8
 * obtain a copy of the License at
9
 *
10
 * http://www.apache.org/licenses/LICENSE-2.0
11
 *
12
 * Unless required by applicable law or agreed to in writing, software
13
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
15
 * License for the specific language governing permissions and limitations
16
 * under the License.
17
 *
18
 * However, if you have executed another commercial license agreement
19
 * with Crate these terms will supersede the license and you may use the
20
 * software solely pursuant to the terms of the relevant commercial agreement.
21
 */
22
namespace Crate\DBAL\Platforms\Keywords;
23
24
use Doctrine\DBAL\Platforms\Keywords\KeywordList;
25
26
class CrateKeywords extends KeywordList
27
{
28
    public function getName()
29
    {
30
        return 'Crate';
31
    }
32
33 25
    protected function getKeywords()
34
    {
35
        return array(
36 25
            'ALL',
37
            'ANALYSE',
38
            'ANALYZE',
39
            'AND',
40
            'ANY',
41
            'AS',
42
            'ASC',
43
            'AUTHORIZATION',
44
            'BETWEEN',
45
            'BINARY',
46
            'BOTH',
47
            'CASE',
48
            'CAST',
49
            'CHECK',
50
            'COLLATE',
51
            'COLUMN',
52
            'CONSTRAINT',
53
            'CREATE',
54
            'CURRENT_DATE',
55
            'CURRENT_TIME',
56
            'CURRENT_TIMESTAMP',
57
            'CURRENT_USER',
58
            'DEFAULT',
59
            'DEFERRABLE',
60
            'DESC',
61
            'DISTINCT',
62
            'DO',
63
            'ELSE',
64
            'END',
65
            'EXCEPT',
66
            'FALSE',
67
            'FOR',
68
            'FOREIGN',
69
            'FREEZE',
70
            'FROM',
71
            'FULL',
72
            'GRANT',
73
            'GROUP',
74
            'HAVING',
75
            'ILIKE',
76
            'IN',
77
            'INITIALLY',
78
            'INNER',
79
            'INTERSECT',
80
            'INTO',
81
            'IS',
82
            'ISNULL',
83
            'JOIN',
84
            'LEADING',
85
            'LEFT',
86
            'LIKE',
87
            'LIMIT',
88
            'LOCALTIME',
89
            'LOCALTIMESTAMP',
90
            'NATURAL',
91
            'NEW',
92
            'NOT',
93
            'NOTNULL',
94
            'NULL',
95
            'OFF',
96
            'OFFSET',
97
            'OLD',
98
            'ON',
99
            'ONLY',
100
            'OR',
101
            'ORDER',
102
            'OUTER',
103
            'OVERLAPS',
104
            'PLACING',
105
            'PRIMARY',
106
            'REFERENCES',
107
            'SELECT',
108
            'SESSION_USER',
109
            'SIMILAR',
110
            'SOME',
111
            'TABLE',
112
            'THEN',
113
            'TO',
114
            'TRAILING',
115
            'TRUE',
116
            'UNION',
117
            'UNIQUE',
118
            'USER',
119
            'USING',
120
            'VERBOSE',
121
            'WHEN',
122
            'WHERE'
123
        );
124
    }
125
}
126