|
1
|
|
|
<?php |
|
2
|
|
|
namespace TNM\GolfCourses\Domain\Model; |
|
3
|
|
|
|
|
4
|
|
|
/*************************************************************** |
|
5
|
|
|
* |
|
6
|
|
|
* Copyright notice |
|
7
|
|
|
* |
|
8
|
|
|
* (c) 2016 Tomas Norre Mikkelsen <[email protected]> |
|
9
|
|
|
* |
|
10
|
|
|
* All rights reserved |
|
11
|
|
|
* |
|
12
|
|
|
* This script is part of the TYPO3 project. The TYPO3 project is |
|
13
|
|
|
* free software; you can redistribute it and/or modify |
|
14
|
|
|
* it under the terms of the GNU General Public License as published by |
|
15
|
|
|
* the Free Software Foundation; either version 3 of the License, or |
|
16
|
|
|
* (at your option) any later version. |
|
17
|
|
|
* |
|
18
|
|
|
* The GNU General Public License can be found at |
|
19
|
|
|
* http://www.gnu.org/copyleft/gpl.html. |
|
20
|
|
|
* |
|
21
|
|
|
* This script is distributed in the hope that it will be useful, |
|
22
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
23
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
24
|
|
|
* GNU General Public License for more details. |
|
25
|
|
|
* |
|
26
|
|
|
* This copyright notice MUST APPEAR in all copies of the script! |
|
27
|
|
|
***************************************************************/ |
|
28
|
|
|
|
|
29
|
|
|
/** |
|
30
|
|
|
* GolfCourse |
|
31
|
|
|
*/ |
|
32
|
|
|
class GolfCourse extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity |
|
33
|
|
|
{ |
|
34
|
|
|
|
|
35
|
|
|
/** |
|
36
|
|
|
* name |
|
37
|
|
|
* |
|
38
|
|
|
* @var string |
|
39
|
|
|
*/ |
|
40
|
|
|
protected $name = ''; |
|
41
|
|
|
|
|
42
|
|
|
/** |
|
43
|
|
|
* website |
|
44
|
|
|
* |
|
45
|
|
|
* @var string |
|
46
|
|
|
*/ |
|
47
|
|
|
protected $website = ''; |
|
48
|
|
|
|
|
49
|
|
|
/** |
|
50
|
|
|
* comment |
|
51
|
|
|
* |
|
52
|
|
|
* @var string |
|
53
|
|
|
*/ |
|
54
|
|
|
protected $comment = ''; |
|
55
|
|
|
|
|
56
|
|
|
/** |
|
57
|
|
|
* country |
|
58
|
|
|
* |
|
59
|
|
|
* @var int |
|
60
|
|
|
*/ |
|
61
|
|
|
protected $country = 0; |
|
62
|
|
|
|
|
63
|
|
|
/** |
|
64
|
|
|
* logo |
|
65
|
|
|
* |
|
66
|
|
|
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference |
|
67
|
|
|
*/ |
|
68
|
|
|
protected $logo = null; |
|
69
|
|
|
|
|
70
|
|
|
/** |
|
71
|
|
|
* @var float |
|
72
|
|
|
*/ |
|
73
|
|
|
protected $longitude = 0.0; |
|
74
|
|
|
|
|
75
|
|
|
/** |
|
76
|
1 |
|
* @var float |
|
77
|
|
|
*/ |
|
78
|
1 |
|
protected $latitude = 0.0; |
|
79
|
|
|
|
|
80
|
|
|
/** |
|
81
|
|
|
* Returns the name |
|
82
|
|
|
* |
|
83
|
|
|
* @return string $name |
|
84
|
|
|
*/ |
|
85
|
|
|
public function getName() |
|
86
|
|
|
{ |
|
87
|
1 |
|
return $this->name; |
|
88
|
|
|
} |
|
89
|
1 |
|
|
|
90
|
1 |
|
/** |
|
91
|
|
|
* Sets the name |
|
92
|
|
|
* |
|
93
|
|
|
* @param string $name |
|
94
|
|
|
* @return void |
|
95
|
|
|
*/ |
|
96
|
|
|
public function setName($name) |
|
97
|
1 |
|
{ |
|
98
|
|
|
$this->name = $name; |
|
99
|
1 |
|
} |
|
100
|
|
|
|
|
101
|
|
|
/** |
|
102
|
|
|
* Returns the website |
|
103
|
|
|
* |
|
104
|
|
|
* @return string $website |
|
105
|
|
|
*/ |
|
106
|
|
|
public function getWebsite() |
|
107
|
|
|
{ |
|
108
|
1 |
|
return $this->website; |
|
109
|
|
|
} |
|
110
|
1 |
|
|
|
111
|
1 |
|
/** |
|
112
|
|
|
* Sets the website |
|
113
|
|
|
* |
|
114
|
|
|
* @param string $website |
|
115
|
|
|
* @return void |
|
116
|
|
|
*/ |
|
117
|
|
|
public function setWebsite($website) |
|
118
|
1 |
|
{ |
|
119
|
|
|
$this->website = $website; |
|
120
|
1 |
|
} |
|
121
|
|
|
|
|
122
|
|
|
/** |
|
123
|
|
|
* Returns the comment |
|
124
|
|
|
* |
|
125
|
|
|
* @return string $comment |
|
126
|
|
|
*/ |
|
127
|
|
|
public function getComment() |
|
128
|
|
|
{ |
|
129
|
1 |
|
return $this->comment; |
|
130
|
|
|
} |
|
131
|
1 |
|
|
|
132
|
1 |
|
/** |
|
133
|
|
|
* Sets the comment |
|
134
|
|
|
* |
|
135
|
|
|
* @param string $comment |
|
136
|
|
|
* @return void |
|
137
|
|
|
*/ |
|
138
|
|
|
public function setComment($comment) |
|
139
|
2 |
|
{ |
|
140
|
|
|
$this->comment = $comment; |
|
141
|
2 |
|
} |
|
142
|
|
|
|
|
143
|
|
|
/** |
|
144
|
|
|
* Returns the country |
|
145
|
|
|
* |
|
146
|
|
|
* @return int $country |
|
147
|
|
|
*/ |
|
148
|
|
|
public function getCountry() |
|
149
|
|
|
{ |
|
150
|
1 |
|
return $this->country; |
|
151
|
|
|
} |
|
152
|
1 |
|
|
|
153
|
1 |
|
/** |
|
154
|
|
|
* Sets the country |
|
155
|
|
|
* |
|
156
|
|
|
* @param int $country |
|
157
|
|
|
* @return void |
|
158
|
|
|
*/ |
|
159
|
|
|
public function setCountry($country) |
|
160
|
1 |
|
{ |
|
161
|
|
|
$this->country = $country; |
|
162
|
1 |
|
} |
|
163
|
|
|
|
|
164
|
|
|
/** |
|
165
|
|
|
* Returns the logo |
|
166
|
|
|
* |
|
167
|
|
|
* @return \TYPO3\CMS\Extbase\Domain\Model\FileReference $logo |
|
168
|
|
|
*/ |
|
169
|
|
|
public function getLogo() |
|
170
|
|
|
{ |
|
171
|
1 |
|
return $this->logo; |
|
172
|
|
|
} |
|
173
|
1 |
|
|
|
174
|
1 |
|
/** |
|
175
|
|
|
* Sets the logo |
|
176
|
|
|
* |
|
177
|
|
|
* @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $logo |
|
178
|
|
|
* @return void |
|
179
|
|
|
*/ |
|
180
|
|
|
public function setLogo(\TYPO3\CMS\Extbase\Domain\Model\FileReference $logo) |
|
181
|
|
|
{ |
|
182
|
|
|
$this->logo = $logo; |
|
183
|
|
|
} |
|
184
|
|
|
|
|
185
|
|
|
/** |
|
186
|
|
|
* @return float |
|
187
|
|
|
*/ |
|
188
|
|
|
public function getLongitude() |
|
189
|
|
|
{ |
|
190
|
|
|
return $this->longitude; |
|
191
|
|
|
} |
|
192
|
|
|
|
|
193
|
|
|
/** |
|
194
|
|
|
* @param float $longitude |
|
195
|
|
|
*/ |
|
196
|
|
|
public function setLongitude($longitude) |
|
197
|
|
|
{ |
|
198
|
|
|
$this->longitude = $longitude; |
|
199
|
|
|
} |
|
200
|
|
|
|
|
201
|
|
|
/** |
|
202
|
|
|
* @return float |
|
203
|
|
|
*/ |
|
204
|
|
|
public function getLatitude() |
|
205
|
|
|
{ |
|
206
|
|
|
return $this->latitude; |
|
207
|
|
|
} |
|
208
|
|
|
|
|
209
|
|
|
/** |
|
210
|
|
|
* @param float $latitude |
|
211
|
|
|
*/ |
|
212
|
|
|
public function setLatitude($latitude) |
|
213
|
|
|
{ |
|
214
|
|
|
$this->latitude = $latitude; |
|
215
|
|
|
} |
|
216
|
|
|
|
|
217
|
|
|
|
|
218
|
|
|
} |
|
219
|
|
|
|