]> Raphaƫl G. Git Repositories - airbundle/blob - Entity/Application.php
Add session_edit contextual form
[airbundle] / Entity / Application.php
1 <?php
2
3 namespace Rapsys\AirBundle\Entity;
4
5 /**
6 * Application
7 */
8 class Application {
9 /**
10 * @var integer
11 */
12 private $id;
13
14 /**
15 * @var float
16 */
17 private $score;
18
19 /**
20 * @var \DateTime
21 */
22 private $canceled;
23
24 /**
25 * @var \DateTime
26 */
27 private $created;
28
29 /**
30 * @var \DateTime
31 */
32 private $updated;
33
34 /**
35 * @var \Doctrine\Common\Collections\Collection
36 */
37 private $votes;
38
39 /**
40 * @var \Rapsys\AirBundle\Entity\Session
41 */
42 private $session;
43
44 /**
45 * @var \Rapsys\AirBundle\Entity\User
46 */
47 private $user;
48
49 /**
50 * Constructor
51 */
52 public function __construct() {
53 $this->votes = new \Doctrine\Common\Collections\ArrayCollection();
54 }
55
56 /**
57 * Get id
58 *
59 * @return integer
60 */
61 public function getId() {
62 return $this->id;
63 }
64
65 /**
66 * Set score
67 *
68 * @param float $score
69 *
70 * @return Application
71 */
72 public function setScore($score) {
73 $this->score = $score;
74
75 return $this;
76 }
77
78 /**
79 * Get score
80 *
81 * @return float
82 */
83 public function getScore() {
84 return $this->score;
85 }
86
87 /**
88 * Set canceled
89 *
90 * @param \DateTime $canceled
91 *
92 * @return Application
93 */
94 public function setCanceled($canceled) {
95 $this->canceled = $canceled;
96
97 return $this;
98 }
99
100 /**
101 * Get canceled
102 *
103 * @return \DateTime
104 */
105 public function getCanceled() {
106 return $this->canceled;
107 }
108
109 /**
110 * Set created
111 *
112 * @param \DateTime $created
113 *
114 * @return Application
115 */
116 public function setCreated($created) {
117 $this->created = $created;
118
119 return $this;
120 }
121
122 /**
123 * Get created
124 *
125 * @return \DateTime
126 */
127 public function getCreated() {
128 return $this->created;
129 }
130
131 /**
132 * Set updated
133 *
134 * @param \DateTime $updated
135 *
136 * @return Application
137 */
138 public function setUpdated($updated) {
139 $this->updated = $updated;
140
141 return $this;
142 }
143
144 /**
145 * Get updated
146 *
147 * @return \DateTime
148 */
149 public function getUpdated() {
150 return $this->updated;
151 }
152
153 /**
154 * Add vote
155 *
156 * @param \Rapsys\AirBundle\Entity\Vote $vote
157 *
158 * @return Application
159 */
160 public function addVote(\Rapsys\AirBundle\Entity\Vote $vote) {
161 $this->votes[] = $vote;
162
163 return $this;
164 }
165
166 /**
167 * Remove vote
168 *
169 * @param \Rapsys\AirBundle\Entity\Vote $vote
170 */
171 public function removeVote(\Rapsys\AirBundle\Entity\Vote $vote) {
172 $this->votes->removeElement($vote);
173 }
174
175 /**
176 * Get votes
177 *
178 * @return \Doctrine\Common\Collections\Collection
179 */
180 public function getVotes() {
181 return $this->votes;
182 }
183
184 /**
185 * Set session
186 *
187 * @param \Rapsys\AirBundle\Entity\Session $session
188 *
189 * @return Application
190 */
191 public function setSession(\Rapsys\AirBundle\Entity\Session $session = null) {
192 $this->session = $session;
193
194 return $this;
195 }
196
197 /**
198 * Get session
199 *
200 * @return \Rapsys\AirBundle\Entity\Session
201 */
202 public function getSession() {
203 return $this->session;
204 }
205
206 /**
207 * Set user
208 *
209 * @param \Rapsys\AirBundle\Entity\User $user
210 *
211 * @return Application
212 */
213 public function setUser(\Rapsys\AirBundle\Entity\User $user = null) {
214 $this->user = $user;
215
216 return $this;
217 }
218
219 /**
220 * Get user
221 *
222 * @return \Rapsys\AirBundle\Entity\User
223 */
224 public function getUser() {
225 return $this->user;
226 }
227 }