1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
namespace VasilDakov\Speedy\Model; |
6
|
|
|
|
7
|
|
|
use JMS\Serializer\Annotation as Serializer; |
8
|
|
|
use VasilDakov\Speedy\ToArray; |
9
|
|
|
|
10
|
|
|
/** |
11
|
|
|
* Class Street |
12
|
|
|
* |
13
|
|
|
* @author Vasil Dakov <[email protected]> |
14
|
|
|
* @copyright 2009-2022 Neutrino.bg |
15
|
|
|
* @version 1.0 |
16
|
|
|
* @psalm-suppress MissingConstructor |
17
|
|
|
* @Serializer\AccessType("public_method") |
18
|
|
|
*/ |
19
|
|
|
class Street |
20
|
|
|
{ |
21
|
|
|
use ToArray; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* @var int |
25
|
|
|
* @Serializer\Type("integer") |
26
|
|
|
*/ |
27
|
|
|
private int $id; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @var int |
31
|
|
|
* @Serializer\Type("integer") |
32
|
|
|
*/ |
33
|
|
|
private int $siteId; |
34
|
|
|
|
35
|
|
|
/** |
36
|
|
|
* @var string |
37
|
|
|
* @Serializer\Type("string") |
38
|
|
|
*/ |
39
|
|
|
private string $type; |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @var string |
43
|
|
|
* @Serializer\Type("string") |
44
|
|
|
*/ |
45
|
|
|
private string $typeEn; |
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* @var string |
49
|
|
|
* @Serializer\Type("string") |
50
|
|
|
*/ |
51
|
|
|
private string $name; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @var string |
55
|
|
|
* @Serializer\Type("string") |
56
|
|
|
*/ |
57
|
|
|
private string $nameEn; |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @var int |
61
|
|
|
* @Serializer\Type("int") |
62
|
|
|
*/ |
63
|
|
|
private int $actualId; |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* @var string |
67
|
|
|
* @Serializer\Type("string") |
68
|
|
|
*/ |
69
|
|
|
private string $actualType; |
70
|
|
|
|
71
|
|
|
/** |
72
|
|
|
* @var string |
73
|
|
|
* @Serializer\Type("string") |
74
|
|
|
*/ |
75
|
|
|
private string $actualTypeEn; |
76
|
|
|
|
77
|
|
|
/** |
78
|
|
|
* @var string |
79
|
|
|
* @Serializer\Type("string") |
80
|
|
|
*/ |
81
|
|
|
private string $actualName; |
82
|
|
|
|
83
|
|
|
/** |
84
|
|
|
* @var string |
85
|
|
|
* @Serializer\Type("string") |
86
|
|
|
*/ |
87
|
|
|
private string $actualNameEn; |
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* @return int |
91
|
|
|
*/ |
92
|
1 |
|
public function getId(): int |
93
|
|
|
{ |
94
|
1 |
|
return $this->id; |
95
|
|
|
} |
96
|
|
|
|
97
|
|
|
/** |
98
|
|
|
* @param int $id |
99
|
|
|
*/ |
100
|
2 |
|
public function setId(int $id): void |
101
|
|
|
{ |
102
|
2 |
|
$this->id = $id; |
103
|
|
|
} |
104
|
|
|
|
105
|
|
|
/** |
106
|
|
|
* @return int |
107
|
|
|
*/ |
108
|
1 |
|
public function getSiteId(): int |
109
|
|
|
{ |
110
|
1 |
|
return $this->siteId; |
111
|
|
|
} |
112
|
|
|
|
113
|
|
|
/** |
114
|
|
|
* @param int $siteId |
115
|
|
|
*/ |
116
|
2 |
|
public function setSiteId(int $siteId): void |
117
|
|
|
{ |
118
|
2 |
|
$this->siteId = $siteId; |
119
|
|
|
} |
120
|
|
|
|
121
|
|
|
/** |
122
|
|
|
* @return string |
123
|
|
|
*/ |
124
|
1 |
|
public function getType(): string |
125
|
|
|
{ |
126
|
1 |
|
return $this->type; |
127
|
|
|
} |
128
|
|
|
|
129
|
|
|
/** |
130
|
|
|
* @param string $type |
131
|
|
|
*/ |
132
|
2 |
|
public function setType(string $type): void |
133
|
|
|
{ |
134
|
2 |
|
$this->type = $type; |
135
|
|
|
} |
136
|
|
|
|
137
|
|
|
/** |
138
|
|
|
* @return string |
139
|
|
|
*/ |
140
|
1 |
|
public function getTypeEn(): string |
141
|
|
|
{ |
142
|
1 |
|
return $this->typeEn; |
143
|
|
|
} |
144
|
|
|
|
145
|
|
|
/** |
146
|
|
|
* @param string $typeEn |
147
|
|
|
*/ |
148
|
2 |
|
public function setTypeEn(string $typeEn): void |
149
|
|
|
{ |
150
|
2 |
|
$this->typeEn = $typeEn; |
151
|
|
|
} |
152
|
|
|
|
153
|
|
|
/** |
154
|
|
|
* @return string |
155
|
|
|
*/ |
156
|
1 |
|
public function getName(): string |
157
|
|
|
{ |
158
|
1 |
|
return $this->name; |
159
|
|
|
} |
160
|
|
|
|
161
|
|
|
/** |
162
|
|
|
* @param string $name |
163
|
|
|
*/ |
164
|
2 |
|
public function setName(string $name): void |
165
|
|
|
{ |
166
|
2 |
|
$this->name = $name; |
167
|
|
|
} |
168
|
|
|
|
169
|
|
|
/** |
170
|
|
|
* @return string |
171
|
|
|
*/ |
172
|
1 |
|
public function getNameEn(): string |
173
|
|
|
{ |
174
|
1 |
|
return $this->nameEn; |
175
|
|
|
} |
176
|
|
|
|
177
|
|
|
/** |
178
|
|
|
* @param string $nameEn |
179
|
|
|
*/ |
180
|
2 |
|
public function setNameEn(string $nameEn): void |
181
|
|
|
{ |
182
|
2 |
|
$this->nameEn = $nameEn; |
183
|
|
|
} |
184
|
|
|
|
185
|
|
|
/** |
186
|
|
|
* @return int |
187
|
|
|
*/ |
188
|
1 |
|
public function getActualId(): int |
189
|
|
|
{ |
190
|
1 |
|
return $this->actualId; |
191
|
|
|
} |
192
|
|
|
|
193
|
|
|
/** |
194
|
|
|
* @param int $actualId |
195
|
|
|
*/ |
196
|
2 |
|
public function setActualId(int $actualId): void |
197
|
|
|
{ |
198
|
2 |
|
$this->actualId = $actualId; |
199
|
|
|
} |
200
|
|
|
|
201
|
|
|
/** |
202
|
|
|
* @return string |
203
|
|
|
*/ |
204
|
1 |
|
public function getActualType(): string |
205
|
|
|
{ |
206
|
1 |
|
return $this->actualType; |
207
|
|
|
} |
208
|
|
|
|
209
|
|
|
/** |
210
|
|
|
* @param string $actualType |
211
|
|
|
*/ |
212
|
2 |
|
public function setActualType(string $actualType): void |
213
|
|
|
{ |
214
|
2 |
|
$this->actualType = $actualType; |
215
|
|
|
} |
216
|
|
|
|
217
|
|
|
/** |
218
|
|
|
* @return string |
219
|
|
|
*/ |
220
|
1 |
|
public function getActualTypeEn(): string |
221
|
|
|
{ |
222
|
1 |
|
return $this->actualTypeEn; |
223
|
|
|
} |
224
|
|
|
|
225
|
|
|
/** |
226
|
|
|
* @param string $actualTypeEn |
227
|
|
|
*/ |
228
|
2 |
|
public function setActualTypeEn(string $actualTypeEn): void |
229
|
|
|
{ |
230
|
2 |
|
$this->actualTypeEn = $actualTypeEn; |
231
|
|
|
} |
232
|
|
|
|
233
|
|
|
/** |
234
|
|
|
* @return string |
235
|
|
|
*/ |
236
|
1 |
|
public function getActualName(): string |
237
|
|
|
{ |
238
|
1 |
|
return $this->actualName; |
239
|
|
|
} |
240
|
|
|
|
241
|
|
|
/** |
242
|
|
|
* @param string $actualName |
243
|
|
|
*/ |
244
|
2 |
|
public function setActualName(string $actualName): void |
245
|
|
|
{ |
246
|
2 |
|
$this->actualName = $actualName; |
247
|
|
|
} |
248
|
|
|
|
249
|
|
|
/** |
250
|
|
|
* @return string |
251
|
|
|
*/ |
252
|
1 |
|
public function getActualNameEn(): string |
253
|
|
|
{ |
254
|
1 |
|
return $this->actualNameEn; |
255
|
|
|
} |
256
|
|
|
|
257
|
|
|
/** |
258
|
|
|
* @param string $actualNameEn |
259
|
|
|
*/ |
260
|
2 |
|
public function setActualNameEn(string $actualNameEn): void |
261
|
|
|
{ |
262
|
2 |
|
$this->actualNameEn = $actualNameEn; |
263
|
|
|
} |
264
|
|
|
} |