CrateKeywords   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 97
Duplicated Lines 0 %

Test Coverage

Coverage 97.8%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 90
c 1
b 0
f 0
dl 0
loc 97
ccs 89
cts 91
cp 0.978
rs 10

2 Methods

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