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