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