]> Raphaƫl G. Git Repositories - airbundle/blob - Entity/Session.php
Change layout to have only section with subtitle inside
[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 $length;
28
29 /**
30 * @var \DateTime
31 */
32 private $created;
33
34 /**
35 * @var \DateTime
36 */
37 private $updated;
38
39 /**
40 * @var \Rapsys\AirBundle\Entity\Application
41 */
42 private $application;
43
44 /**
45 * @var \Rapsys\AirBundle\Entity\Location
46 */
47 private $location;
48
49 /**
50 * @var \Rapsys\AirBundle\Entity\Slot
51 */
52 private $slot;
53
54 /**
55 * @var \Doctrine\Common\Collections\Collection
56 */
57 private $applications;
58
59 /**
60 * Constructor
61 */
62 public function __construct() {
63 $this->applications = new \Doctrine\Common\Collections\ArrayCollection();
64 }
65
66 /**
67 * Get id
68 *
69 * @return integer
70 */
71 public function getId() {
72 return $this->id;
73 }
74
75 /**
76 * Set date
77 *
78 * @param \DateTime $date
79 *
80 * @return Session
81 */
82 public function setDate($date) {
83 $this->date = $date;
84
85 return $this;
86 }
87
88 /**
89 * Get date
90 *
91 * @return \DateTime
92 */
93 public function getDate() {
94 return $this->date;
95 }
96
97 /**
98 * Set begin
99 *
100 * @param \DateTime $begin
101 *
102 * @return Session
103 */
104 public function setBegin($begin) {
105 $this->begin = $begin;
106
107 return $this;
108 }
109
110 /**
111 * Get begin
112 *
113 * @return \DateTime
114 */
115 public function getBegin() {
116 return $this->begin;
117 }
118
119 /**
120 * Set length
121 *
122 * @param \DateTime $length
123 *
124 * @return Session
125 */
126 public function setLength($length) {
127 $this->length = $length;
128
129 return $this;
130 }
131
132 /**
133 * Get length
134 *
135 * @return \DateTime
136 */
137 public function getLength() {
138 return $this->length;
139 }
140
141 /**
142 * Set created
143 *
144 * @param \DateTime $created
145 *
146 * @return Session
147 */
148 public function setCreated($created) {
149 $this->created = $created;
150
151 return $this;
152 }
153
154 /**
155 * Get created
156 *
157 * @return \DateTime
158 */
159 public function getCreated() {
160 return $this->created;
161 }
162
163 /**
164 * Set updated
165 *
166 * @param \DateTime $updated
167 *
168 * @return Session
169 */
170 public function setUpdated($updated) {
171 $this->updated = $updated;
172
173 return $this;
174 }
175
176 /**
177 * Get updated
178 *
179 * @return \DateTime
180 */
181 public function getUpdated() {
182 return $this->updated;
183 }
184
185 /**
186 * Add application
187 *
188 * @param \Rapsys\AirBundle\Entity\Application $application
189 *
190 * @return Session
191 */
192 public function addApplication(\Rapsys\AirBundle\Entity\Application $application) {
193 $this->applications[] = $application;
194
195 return $this;
196 }
197
198 /**
199 * Remove application
200 *
201 * @param \Rapsys\AirBundle\Entity\Application $application
202 */
203 public function removeApplication(\Rapsys\AirBundle\Entity\Application $application) {
204 $this->applications->removeElement($application);
205 }
206
207 /**
208 * Get applications
209 *
210 * @return \Doctrine\Common\Collections\Collection
211 */
212 public function getApplications() {
213 return $this->applications;
214 }
215
216 /**
217 * Set location
218 *
219 * @param \Rapsys\AirBundle\Entity\Location $location
220 *
221 * @return Session
222 */
223 public function setLocation(\Rapsys\AirBundle\Entity\Location $location = null) {
224 $this->location = $location;
225
226 return $this;
227 }
228
229 /**
230 * Get location
231 *
232 * @return \Rapsys\AirBundle\Entity\Location
233 */
234 public function getLocation() {
235 return $this->location;
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 }