Passed
Push — main ( 6bf038...55787e )
by Aleksandr
08:10
created

Point::getApartment()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace DalliSDK\Models;
6
7
use DalliSDK\Traits\Fillable;
8
use JMS\Serializer\Annotation as JMS;
9
10
/**
11
 * Модель для пунктов выдачи заказов (ПВЗ)
12
 *
13
 * @see https://api.dalli-service.com/v1/doc/pointsInfo
14
 * @JMS\XmlRoot("point")
15
 */
16
class Point
17
{
18
    use Fillable;
19
20
    /**
21
     * Код ПВЗ
22
     *
23
     * @JMS\XmlAttribute()
24
     * @JMS\Type("string")
25
     */
26
    private string $code;
27
28
    /**
29
     * Наименование
30
     *
31
     * @JMS\Type("string")
32
     */
33
    private string $name;
34
35
    /**
36
     * Регион
37
     *
38
     * @JMS\Type("string")
39
     */
40
    private ?string $settlement = null;
41
42
    /**
43
     * Населенный пункт
44
     *
45
     * @JMS\Type("string")
46
     */
47
    private ?string $town = null;
48
49
    /**
50
     * ФИАС код населённого пункта
51
     *
52
     * @JMS\Type("string")
53
     */
54
    private ?string $fias = null;
55
56
    /**
57
     * Адрес
58
     *
59
     * @JMS\Type("string")
60
     */
61
    private string $address;
62
63
    /**
64
     * Отформатированный адрес
65
     *
66
     * @JMS\Type("string")
67
     * @JMS\SerializedName("addressReduce")
68
     */
69
    private ?string $addressReduce = null;
70
71
    /**
72
     * Описание ПВЗ/Как добраться
73
     *
74
     * @JMS\Type("string")
75
     */
76
    private ?string $description = null;
77
78
    /**
79
     * Почтовый индекс
80
     *
81
     * @JMS\Type("string")
82
     */
83
    private ?string $zipcode = null;
84
85
86
    /**
87
     * Если 1, ПВЗ работает только с предоплаченными заказами
88
     *
89
     * @JMS\Type("string")
90
     * @JMS\SerializedName("onlyPrepaid")
91
     */
92
    private ?string $onlyPrepaid = null;
93
94
    /**
95
     * Если 1, принимает оплату картой
96
     *
97
     * @JMS\Type("string")
98
     */
99
    private ?string $acquiring = null;
100
101
    /**
102
     * Если 1, разрешена примерка
103
     *
104
     * @JMS\Type("string")
105
     * @JMS\SerializedName("EnableFitting")
106
     */
107
    private ?string $enableFitting = null;
108
109
    /**
110
     * График работы в свободной форме
111
     *
112
     * @JMS\Type("string")
113
     * @JMS\SerializedName("workShedule")
114
     */
115
    private ?string $workShedule = null;
116
117
    /**
118
     * Координаты GPS
119
     *
120
     * @JMS\Type("string")
121
     * @JMS\SerializedName("GPS")
122
     */
123
    private ?string $GPS = null;
124
125
    /**
126
     * Телефон для справок
127
     *
128
     * @JMS\Type("string")
129
     */
130
    private ?string $phone = null;
131
132
    /**
133
     * Может принимать значения: DS, SDEK, BOXBERRY, 5POST
134
     *
135
     * @JMS\Type("string")
136
     */
137
    private ?string $partner = null;
138
139
    /**
140
     * Ограничение по весу в кг
141
     *
142
     * @JMS\Type("float")
143
     * @JMS\SerializedName("weightLimit")
144
     */
145
    private ?float $weightLimit = null;
146
147
    /**
148
     * Ограничение по весу в кг
149
     *
150
     * @JMS\Type("string")
151
     * @JMS\SerializedName("Metro")
152
     */
153
    private ?string $metro = null;
154
155
    /**
156
     * Название улицы
157
     *
158
     * @JMS\Type("string")
159
     * @JMS\SerializedName("Street")
160
     */
161
    private ?string $street = null;
162
163
    /**
164
     * Дом
165
     *
166
     * @JMS\Type("string")
167
     * @JMS\SerializedName("House")
168
     */
169
    private ?string $house = null;
170
171
    /**
172
     * Корпус
173
     *
174
     * @JMS\Type("string")
175
     * @JMS\SerializedName("Structure")
176
     */
177
    private ?string $structure = null;
178
179
    /**
180
     * Строение
181
     *
182
     * @JMS\Type("string")
183
     * @JMS\SerializedName("Housing")
184
     */
185
    private ?string $housing = null;
186
187
    /**
188
     *
189
     *
190
     * @JMS\Type("string")
191
     * @JMS\SerializedName("Apartment")
192
     */
193
    private ?string $apartment = null;
194
195
    /**
196
     * Тарифная зона
197
     *
198
     * @JMS\Type("string")
199
     */
200
    private ?string $zone = null;
201
202
    /**
203
     * Если 1, то это постамат
204
     *
205
     * @JMS\Type("string")
206
     */
207
    private ?string $postamat = null;
208
209
    /**
210
     * Дата, когда информация о ПВЗ была обновлена
211
     *
212
     * @JMS\Type("string")
213
     * @JMS\SerializedName("ldtime")
214
     */
215
    private ?string $idTime = null;
216
217
    /**
218
     * @return string
219
     */
220 2
    public function getCode(): string
221
    {
222 2
        return $this->code;
223
    }
224
225
    /**
226
     * @return string
227
     */
228 2
    public function getName(): string
229
    {
230 2
        return $this->name;
231
    }
232
233
    /**
234
     * @return string|null
235
     */
236 2
    public function getSettlement(): ?string
237
    {
238 2
        return $this->settlement;
239
    }
240
241
    /**
242
     * @return string|null
243
     */
244 2
    public function getTown(): ?string
245
    {
246 2
        return $this->town;
247
    }
248
249
    /**
250
     * @return string|null
251
     */
252 2
    public function getFias(): ?string
253
    {
254 2
        return $this->fias;
255
    }
256
257
    /**
258
     * @return string
259
     */
260 2
    public function getAddress(): string
261
    {
262 2
        return $this->address;
263
    }
264
265
    /**
266
     * @return string|null
267
     */
268 2
    public function getAddressReduce(): ?string
269
    {
270 2
        return $this->addressReduce;
271
    }
272
273
    /**
274
     * @return string|null
275
     */
276 2
    public function getDescription(): ?string
277
    {
278 2
        return $this->description;
279
    }
280
281
    /**
282
     * @return string|null
283
     */
284 2
    public function getZipcode(): ?string
285
    {
286 2
        return $this->zipcode;
287
    }
288
289
    /**
290
     * @return string|null
291
     */
292 2
    public function getOnlyPrepaid(): ?string
293
    {
294 2
        return $this->onlyPrepaid;
295
    }
296
297
    /**
298
     * @return string|null
299
     */
300 2
    public function getAcquiring(): ?string
301
    {
302 2
        return $this->acquiring;
303
    }
304
305
    /**
306
     * @return string|null
307
     */
308 2
    public function getEnableFitting(): ?string
309
    {
310 2
        return $this->enableFitting;
311
    }
312
313
    /**
314
     * @return string|null
315
     */
316 2
    public function getWorkShedule(): ?string
317
    {
318 2
        return $this->workShedule;
319
    }
320
321
    /**
322
     * @return string|null
323
     */
324 2
    public function getGPS(): ?string
325
    {
326 2
        return $this->GPS;
327
    }
328
329
    /**
330
     * @return string|null
331
     */
332 2
    public function getPhone(): ?string
333
    {
334 2
        return $this->phone;
335
    }
336
337
    /**
338
     * @return string|null
339
     */
340 2
    public function getPartner(): ?string
341
    {
342 2
        return $this->partner;
343
    }
344
345
    /**
346
     * @return float|null
347
     */
348 2
    public function getWeightLimit(): ?float
349
    {
350 2
        return $this->weightLimit;
351
    }
352
353
    /**
354
     * @return string|null
355
     */
356 2
    public function getMetro(): ?string
357
    {
358 2
        return $this->metro;
359
    }
360
361
    /**
362
     * @return string|null
363
     */
364 2
    public function getStreet(): ?string
365
    {
366 2
        return $this->street;
367
    }
368
369
    /**
370
     * @return string|null
371
     */
372 2
    public function getHouse(): ?string
373
    {
374 2
        return $this->house;
375
    }
376
377
    /**
378
     * @return string|null
379
     */
380 2
    public function getStructure(): ?string
381
    {
382 2
        return $this->structure;
383
    }
384
385
    /**
386
     * @return string|null
387
     */
388 2
    public function getHousing(): ?string
389
    {
390 2
        return $this->housing;
391
    }
392
393
    /**
394
     * @return string|null
395
     */
396 2
    public function getZone(): ?string
397
    {
398 2
        return $this->zone;
399
    }
400
401
    /**
402
     * @return string|null
403
     */
404 2
    public function getPostamat(): ?string
405
    {
406 2
        return $this->postamat;
407
    }
408
409
    /**
410
     * @return string|null
411
     */
412 2
    public function getIdTime(): ?string
413
    {
414 2
        return $this->idTime;
415
    }
416
417
    /**
418
     * @return string|null
419
     */
420 2
    public function getApartment(): ?string
421
    {
422 2
        return $this->apartment;
423
    }
424
}
425