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