]> Raphaƫl G. Git Repositories - airbundle/blob - Entity/Vote.php
Add short field and related methods
[airbundle] / Entity / Vote.php
1 <?php
2
3 namespace Rapsys\AirBundle\Entity;
4
5 /**
6 * Vote
7 */
8 class Vote
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 \Rapsys\AirBundle\Entity\Application
27 */
28 private $application;
29
30 /**
31 * @var \Rapsys\AirBundle\Entity\User
32 */
33 private $user;
34
35
36 /**
37 * Get id
38 *
39 * @return integer
40 */
41 public function getId()
42 {
43 return $this->id;
44 }
45
46 /**
47 * Set created
48 *
49 * @param \DateTime $created
50 *
51 * @return Vote
52 */
53 public function setCreated($created)
54 {
55 $this->created = $created;
56
57 return $this;
58 }
59
60 /**
61 * Get created
62 *
63 * @return \DateTime
64 */
65 public function getCreated()
66 {
67 return $this->created;
68 }
69
70 /**
71 * Set updated
72 *
73 * @param \DateTime $updated
74 *
75 * @return Vote
76 */
77 public function setUpdated($updated)
78 {
79 $this->updated = $updated;
80
81 return $this;
82 }
83
84 /**
85 * Get updated
86 *
87 * @return \DateTime
88 */
89 public function getUpdated()
90 {
91 return $this->updated;
92 }
93
94 /**
95 * Set application
96 *
97 * @param \Rapsys\AirBundle\Entity\Application $application
98 *
99 * @return Vote
100 */
101 public function setApplication(\Rapsys\AirBundle\Entity\Application $application = null)
102 {
103 $this->application = $application;
104
105 return $this;
106 }
107
108 /**
109 * Get application
110 *
111 * @return \Rapsys\AirBundle\Entity\Application
112 */
113 public function getApplication()
114 {
115 return $this->application;
116 }
117
118 /**
119 * Set user
120 *
121 * @param \Rapsys\AirBundle\Entity\User $user
122 *
123 * @return Vote
124 */
125 public function setUser(\Rapsys\AirBundle\Entity\User $user = null)
126 {
127 $this->user = $user;
128
129 return $this;
130 }
131
132 /**
133 * Get user
134 *
135 * @return \Rapsys\AirBundle\Entity\User
136 */
137 public function getUser()
138 {
139 return $this->user;
140 }
141 }