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

CrateKeywords   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 100
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 50%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 100
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 4 1
B getKeywords() 0 92 1
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