]> Raphaƫl G. Git Repositories - airbundle/blob - Entity/Location.php
Add phone field
[airbundle] / Entity / Location.php
1 <?php
2
3 namespace Rapsys\AirBundle\Entity;
4
5 /**
6 * Location
7 */
8 class Location
9 {
10 /**
11 * @var integer
12 */
13 private $id;
14
15 /**
16 * @var string
17 */
18 private $title;
19
20 /**
21 * @var string
22 */
23 private $address;
24
25 /**
26 * @var string
27 */
28 private $zipcode;
29
30 /**
31 * @var string
32 */
33 private $city;
34
35 /**
36 * @var string
37 */
38 private $latitude;
39
40 /**
41 * @var string
42 */
43 private $longitude;
44
45 /**
46 * @var \DateTime
47 */
48 private $created;
49
50 /**
51 * @var \DateTime
52 */
53 private $updated;
54
55 /**
56 * @var \Doctrine\Common\Collections\Collection
57 */
58 private $sessions;
59
60 /**
61 * Constructor
62 */
63 public function __construct()
64 {
65 $this->sessions = new \Doctrine\Common\Collections\ArrayCollection();
66 }
67
68 /**
69 * Get id
70 *
71 * @return integer
72 */
73 public function getId()
74 {
75 return $this->id;
76 }
77
78 /**
79 * Set title
80 *
81 * @param string $title
82 *
83 * @return Location
84 */
85 public function setTitle($title)
86 {
87 $this->title = $title;
88
89 return $this;
90 }
91
92 /**
93 * Get title
94 *
95 * @return string
96 */
97 public function getTitle()
98 {
99 return $this->title;
100 }
101
102 /**
103 * Set address
104 *
105 * @param string $address
106 *
107 * @return Location
108 */
109 public function setAddress($address)
110 {
111 $this->address = $address;
112
113 return $this;
114 }
115
116 /**
117 * Get address
118 *
119 * @return string
120 */
121 public function getAddress()
122 {
123 return $this->address;
124 }
125
126 /**
127 * Set zipcode
128 *
129 * @param string $zipcode
130 *
131 * @return Location
132 */
133 public function setZipcode($zipcode)
134 {
135 $this->zipcode = $zipcode;
136
137 return $this;
138 }
139
140 /**
141 * Get zipcode
142 *
143 * @return string
144 */
145 public function getZipcode()
146 {
147 return $this->zipcode;
148 }
149
150 /**
151 * Set city
152 *
153 * @param string $city
154 *
155 * @return Location
156 */
157 public function setCity($city)
158 {
159 $this->city = $city;
160
161 return $this;
162 }
163
164 /**
165 * Get city
166 *
167 * @return string
168 */
169 public function getCity()
170 {
171 return $this->city;
172 }
173
174 /**
175 * Set latitude
176 *
177 * @param string $latitude
178 *
179 * @return Location
180 */
181 public function setLatitude($latitude)
182 {
183 $this->latitude = $latitude;
184
185 return $this;
186 }
187
188 /**
189 * Get latitude
190 *
191 * @return string
192 */
193 public function getLatitude()
194 {
195 return $this->latitude;
196 }
197
198 /**
199 * Set longitude
200 *
201 * @param string $longitude
202 *
203 * @return Location
204 */
205 public function setLongitude($longitude)
206 {
207 $this->longitude = $longitude;
208
209 return $this;
210 }
211
212 /**
213 * Get longitude
214 *
215 * @return string
216 */
217 public function getLongitude()
218 {
219 return $this->longitude;
220 }
221
222 /**
223 * Set created
224 *
225 * @param \DateTime $created
226 *
227 * @return Location
228 */
229 public function setCreated($created)
230 {
231 $this->created = $created;
232
233 return $this;
234 }
235
236 /**
237 * Get created
238 *
239 * @return \DateTime
240 */
241 public function getCreated()
242 {
243 return $this->created;
244 }
245
246 /**
247 * Set updated
248 *
249 * @param \DateTime $updated
250 *
251 * @return Location
252 */
253 public function setUpdated($updated)
254 {
255 $this->updated = $updated;
256
257 return $this;
258 }
259
260 /**
261 * Get updated
262 *
263 * @return \DateTime
264 */
265 public function getUpdated()
266 {
267 return $this->updated;
268 }
269
270 /**
271 * Add session
272 *
273 * @param \Rapsys\AirBundle\Entity\Session $session
274 *
275 * @return Location
276 */
277 public function addSession(\Rapsys\AirBundle\Entity\Session $session)
278 {
279 $this->sessions[] = $session;
280
281 return $this;
282 }
283
284 /**
285 * Remove session
286 *
287 * @param \Rapsys\AirBundle\Entity\Session $session
288 */
289 public function removeSession(\Rapsys\AirBundle\Entity\Session $session)
290 {
291 $this->sessions->removeElement($session);
292 }
293
294 /**
295 * Get sessions
296 *
297 * @return \Doctrine\Common\Collections\Collection
298 */
299 public function getSessions()
300 {
301 return $this->sessions;
302 }
303 }
304