Completed
Push — master ( 0f6ac6...c701d2 )
by WEBEWEB
01:05
created

AbstractCsvResponse::addAdresse()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of the geo-api-library package.
5
 *
6
 * (c) 2020 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Library\GeoAPI\Model\Response\Adresse;
13
14
use WBW\Library\GeoAPI\Model\Response\AdressesResponse;
15
16
/**
17
 * Abstract CVS response.
18
 *
19
 * @author webeweb <https://github.com/webeweb/>
20
 * @package WBW\Library\GeoAPI\Model\Response\Adresse
21
 * @abstract
22
 */
23
abstract class AbstractCsvResponse extends AdressesResponse {
24
25
    /**
26
     * Result "city".
27
     *
28
     * @var string
29
     */
30
    const RESULT_CITY = "result_city";
31
32
    /**
33
     * Result "city code".
34
     *
35
     * @var string
36
     */
37
    const RESULT_CITYCODE = "result_citycode";
38
39
    /**
40
     * Result "context".
41
     *
42
     * @var string
43
     */
44
    const RESULT_CONTEXT = "result_context";
45
46
    /**
47
     * Result "distance".
48
     *
49
     * @var string
50
     */
51
    const RESULT_DISTANCE = "result_distance";
52
53
    /**
54
     * Result "district".
55
     *
56
     * @var string
57
     */
58
    const RESULT_DISTRICT = "result_district";
59
60
    /**
61
     * Result "house number".
62
     *
63
     * @var string
64
     */
65
    const RESULT_HOUSENUMBER = "result_housenumber";
66
67
    /**
68
     * Result "id".
69
     *
70
     * @var string
71
     */
72
    const RESULT_ID = "result_id";
73
74
    /**
75
     * Result "label".
76
     *
77
     * @var string
78
     */
79
    const RESULT_LABEL = "result_label";
80
81
    /**
82
     * Result "latitude".
83
     *
84
     * @var string
85
     */
86
    const RESULT_LATITUDE = "result_latitude";
87
88
    /**
89
     * Result "longitude".
90
     *
91
     * @var string
92
     */
93
    const RESULT_LONGITUDE = "result_longitude";
94
95
    /**
96
     * Result "name".
97
     *
98
     * @var string
99
     */
100
    const RESULT_NAME = "result_name";
101
102
    /**
103
     * Result "old city".
104
     *
105
     * @var string
106
     */
107
    const RESULT_OLDCITY = "result_oldcity";
108
109
    /**
110
     * Result "old city code".
111
     *
112
     * @var string
113
     */
114
    const RESULT_OLDCITYCODE = "result_oldcitycode";
115
116
    /**
117
     * Result "postcode".
118
     *
119
     * @var string
120
     */
121
    const RESULT_POSTCODE = "result_postcode";
122
123
    /**
124
     * Result "score".
125
     *
126
     * @var string
127
     */
128
    const RESULT_SCORE = "result_score";
129
130
    /**
131
     * Result "street".
132
     *
133
     * @var string
134
     */
135
    const RESULT_STREET = "result_street";
136
137
    /**
138
     * Result "type".
139
     *
140
     * @var string
141
     */
142
    const RESULT_TYPE = "result_type";
143
144
    /**
145
     * Enumerates the result columns.
146
     *
147
     * @return string[] Returns the result columns.
148
     */
149
    public static function enumResultColumns() {
150
        return [
151
            self::RESULT_CITY,
152
            self::RESULT_CITYCODE,
153
            self::RESULT_CONTEXT,
154
            self::RESULT_DISTANCE,
155
            self::RESULT_DISTRICT,
156
            self::RESULT_HOUSENUMBER,
157
            self::RESULT_ID,
158
            self::RESULT_LABEL,
159
            self::RESULT_LATITUDE,
160
            self::RESULT_LONGITUDE,
161
            self::RESULT_NAME,
162
            self::RESULT_OLDCITY,
163
            self::RESULT_OLDCITYCODE,
164
            self::RESULT_POSTCODE,
165
            self::RESULT_SCORE,
166
            self::RESULT_STREET,
167
            self::RESULT_TYPE,
168
        ];
169
    }
170
}