1
|
|
|
<?php |
2
|
|
|
namespace DERHANSEN\SfEventMgt\Domain\Model; |
3
|
|
|
|
4
|
|
|
/* |
5
|
|
|
* This file is part of the Extension "sf_event_mgt" for TYPO3 CMS. |
6
|
|
|
* |
7
|
|
|
* For the full copyright and license information, please read the |
8
|
|
|
* LICENSE.txt file that was distributed with this source code. |
9
|
|
|
*/ |
10
|
|
|
|
11
|
|
|
/** |
12
|
|
|
* Location |
13
|
|
|
* |
14
|
|
|
* @author Torben Hansen <[email protected]> |
15
|
|
|
*/ |
16
|
|
|
class Location extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity |
17
|
|
|
{ |
18
|
|
|
/** |
19
|
|
|
* Title |
20
|
|
|
* |
21
|
|
|
* @var string |
22
|
|
|
*/ |
23
|
|
|
protected $title = ''; |
24
|
|
|
|
25
|
|
|
/** |
26
|
|
|
* Address |
27
|
|
|
* |
28
|
|
|
* @var string |
29
|
|
|
*/ |
30
|
|
|
protected $address = ''; |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* Zip |
34
|
|
|
* |
35
|
|
|
* @var string |
36
|
|
|
*/ |
37
|
|
|
protected $zip = ''; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* City |
41
|
|
|
* |
42
|
|
|
* @var string |
43
|
|
|
*/ |
44
|
|
|
protected $city = ''; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* Country |
48
|
|
|
* |
49
|
|
|
* @var string |
50
|
|
|
*/ |
51
|
|
|
protected $country = ''; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* Description |
55
|
|
|
* |
56
|
|
|
* @var string |
57
|
|
|
*/ |
58
|
|
|
protected $description = ''; |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* Link |
62
|
|
|
* |
63
|
|
|
* @var string |
64
|
|
|
*/ |
65
|
|
|
protected $link = ''; |
66
|
|
|
|
67
|
|
|
/** |
68
|
|
|
* Longitude |
69
|
|
|
* |
70
|
|
|
* @var float |
71
|
|
|
*/ |
72
|
|
|
protected $longitude = 0.0; |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* Latitude |
76
|
|
|
* |
77
|
|
|
* @var float |
78
|
|
|
*/ |
79
|
|
|
protected $latitude = 0.0; |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* Returns the title |
83
|
|
|
* |
84
|
|
|
* @return string $title |
85
|
|
|
*/ |
86
|
|
|
public function getTitle() |
87
|
|
|
{ |
88
|
|
|
return $this->title; |
89
|
|
|
} |
90
|
|
|
|
91
|
|
|
/** |
92
|
|
|
* Sets the title |
93
|
2 |
|
* |
94
|
|
|
* @param string $title The title |
95
|
2 |
|
* |
96
|
|
|
* @return void |
97
|
|
|
*/ |
98
|
|
|
public function setTitle($title) |
99
|
|
|
{ |
100
|
|
|
$this->title = $title; |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
/** |
104
|
|
|
* Returns the address |
105
|
2 |
|
* |
106
|
|
|
* @return string $address |
107
|
2 |
|
*/ |
108
|
2 |
|
public function getAddress() |
109
|
|
|
{ |
110
|
|
|
return $this->address; |
111
|
|
|
} |
112
|
|
|
|
113
|
|
|
/** |
114
|
|
|
* Sets the address |
115
|
2 |
|
* |
116
|
|
|
* @param string $address Address |
117
|
2 |
|
* |
118
|
|
|
* @return void |
119
|
|
|
*/ |
120
|
|
|
public function setAddress($address) |
121
|
|
|
{ |
122
|
|
|
$this->address = $address; |
123
|
|
|
} |
124
|
|
|
|
125
|
|
|
/** |
126
|
|
|
* Returns the zip |
127
|
2 |
|
* |
128
|
|
|
* @return string $zip |
129
|
2 |
|
*/ |
130
|
2 |
|
public function getZip() |
131
|
|
|
{ |
132
|
|
|
return $this->zip; |
133
|
|
|
} |
134
|
|
|
|
135
|
|
|
/** |
136
|
|
|
* Sets the zip |
137
|
2 |
|
* |
138
|
|
|
* @param string $zip Zip |
139
|
2 |
|
* |
140
|
|
|
* @return void |
141
|
|
|
*/ |
142
|
|
|
public function setZip($zip) |
143
|
|
|
{ |
144
|
|
|
$this->zip = $zip; |
145
|
|
|
} |
146
|
|
|
|
147
|
|
|
/** |
148
|
|
|
* Returns the city |
149
|
2 |
|
* |
150
|
|
|
* @return string $city |
151
|
2 |
|
*/ |
152
|
2 |
|
public function getCity() |
153
|
|
|
{ |
154
|
|
|
return $this->city; |
155
|
|
|
} |
156
|
|
|
|
157
|
|
|
/** |
158
|
|
|
* Sets the city |
159
|
2 |
|
* |
160
|
|
|
* @param string $city City |
161
|
2 |
|
* |
162
|
|
|
* @return void |
163
|
|
|
*/ |
164
|
|
|
public function setCity($city) |
165
|
|
|
{ |
166
|
|
|
$this->city = $city; |
167
|
|
|
} |
168
|
|
|
|
169
|
|
|
/** |
170
|
|
|
* Returns the country |
171
|
2 |
|
* |
172
|
|
|
* @return string $country |
173
|
2 |
|
*/ |
174
|
2 |
|
public function getCountry() |
175
|
|
|
{ |
176
|
|
|
return $this->country; |
177
|
|
|
} |
178
|
|
|
|
179
|
|
|
/** |
180
|
|
|
* Sets the country |
181
|
2 |
|
* |
182
|
|
|
* @param string $country Country |
183
|
2 |
|
* |
184
|
|
|
* @return void |
185
|
|
|
*/ |
186
|
|
|
public function setCountry($country) |
187
|
|
|
{ |
188
|
|
|
$this->country = $country; |
189
|
|
|
} |
190
|
|
|
|
191
|
|
|
/** |
192
|
|
|
* Returns the description |
193
|
2 |
|
* |
194
|
|
|
* @return string $description |
195
|
2 |
|
*/ |
196
|
2 |
|
public function getDescription() |
197
|
|
|
{ |
198
|
|
|
return $this->description; |
199
|
|
|
} |
200
|
|
|
|
201
|
|
|
/** |
202
|
|
|
* Sets the description |
203
|
2 |
|
* |
204
|
|
|
* @param string $description The description |
205
|
2 |
|
* |
206
|
|
|
* @return void |
207
|
|
|
*/ |
208
|
|
|
public function setDescription($description) |
209
|
|
|
{ |
210
|
|
|
$this->description = $description; |
211
|
|
|
} |
212
|
|
|
|
213
|
|
|
/** |
214
|
|
|
* Returns link |
215
|
2 |
|
* |
216
|
|
|
* @return string |
217
|
2 |
|
*/ |
218
|
2 |
|
public function getLink() |
219
|
|
|
{ |
220
|
|
|
return $this->link; |
221
|
|
|
} |
222
|
|
|
|
223
|
|
|
/** |
224
|
|
|
* Sets link |
225
|
2 |
|
* |
226
|
|
|
* @param string $link |
227
|
2 |
|
* @return void |
228
|
|
|
*/ |
229
|
|
|
public function setLink($link) |
230
|
|
|
{ |
231
|
|
|
$this->link = $link; |
232
|
|
|
} |
233
|
|
|
|
234
|
|
|
/** |
235
|
|
|
* Returns the longitude |
236
|
2 |
|
* |
237
|
|
|
* @return float |
238
|
2 |
|
*/ |
239
|
2 |
|
public function getLongitude() |
240
|
|
|
{ |
241
|
|
|
return $this->longitude; |
242
|
|
|
} |
243
|
|
|
|
244
|
|
|
/** |
245
|
|
|
* Sets the the longitude |
246
|
4 |
|
* |
247
|
|
|
* @param float $longitude The longitude |
248
|
4 |
|
* |
249
|
|
|
* @return void |
250
|
|
|
*/ |
251
|
|
|
public function setLongitude($longitude) |
252
|
|
|
{ |
253
|
|
|
$this->longitude = $longitude; |
254
|
|
|
} |
255
|
|
|
|
256
|
|
|
/** |
257
|
|
|
* Returns the latitude |
258
|
2 |
|
* |
259
|
|
|
* @return float |
260
|
2 |
|
*/ |
261
|
2 |
|
public function getLatitude() |
262
|
|
|
{ |
263
|
|
|
return $this->latitude; |
264
|
|
|
} |
265
|
|
|
|
266
|
|
|
/** |
267
|
|
|
* Sets the latitude |
268
|
4 |
|
* |
269
|
|
|
* @param float $latitude The latitude |
270
|
4 |
|
* |
271
|
|
|
* @return void |
272
|
|
|
*/ |
273
|
|
|
public function setLatitude($latitude) |
274
|
|
|
{ |
275
|
|
|
$this->latitude = $latitude; |
276
|
|
|
} |
277
|
|
|
} |
278
|
|
|
|