]> Raphaƫl G. Git Repositories - blogbundle/blob - Entity/Language.php
Update copyright
[blogbundle] / Entity / Language.php
1 <?php
2
3 namespace Rapsys\BlogBundle\Entity;
4
5 /**
6 * Language
7 */
8 class Language
9 {
10 /**
11 * @var integer
12 */
13 private $id;
14
15 /**
16 * @var string
17 */
18 private $iso6391;
19
20 /**
21 * @var string
22 */
23 private $iso6393;
24
25 /**
26 * @var \DateTime
27 */
28 private $created;
29
30 /**
31 * @var \DateTime
32 */
33 private $updated;
34
35 /**
36 * @var \Doctrine\Common\Collections\Collection
37 */
38 private $article_translations;
39
40 /**
41 * @var \Doctrine\Common\Collections\Collection
42 */
43 private $keyword_translations;
44
45 /**
46 * @var \Doctrine\Common\Collections\Collection
47 */
48 private $site_translations;
49
50 /**
51 * @var \Doctrine\Common\Collections\Collection
52 */
53 private $language_translations;
54
55 /**
56 * @var \Doctrine\Common\Collections\Collection
57 */
58 private $target_translations;
59
60 /**
61 * Constructor
62 */
63 public function __construct()
64 {
65 $this->article_translations = new \Doctrine\Common\Collections\ArrayCollection();
66 $this->keyword_translations = new \Doctrine\Common\Collections\ArrayCollection();
67 $this->site_translations = new \Doctrine\Common\Collections\ArrayCollection();
68 $this->language_translations = new \Doctrine\Common\Collections\ArrayCollection();
69 $this->target_translations = new \Doctrine\Common\Collections\ArrayCollection();
70 }
71
72 /**
73 * Get id
74 *
75 * @return integer
76 */
77 public function getId()
78 {
79 return $this->id;
80 }
81
82 /**
83 * Set iso6391
84 *
85 * @param string $iso6391
86 *
87 * @return Language
88 */
89 public function setIso6391($iso6391)
90 {
91 $this->iso6391 = $iso6391;
92
93 return $this;
94 }
95
96 /**
97 * Get iso6391
98 *
99 * @return string
100 */
101 public function getIso6391()
102 {
103 return $this->iso6391;
104 }
105
106 /**
107 * Set iso6393
108 *
109 * @param string $iso6393
110 *
111 * @return Language
112 */
113 public function setIso6393($iso6393)
114 {
115 $this->iso6393 = $iso6393;
116
117 return $this;
118 }
119
120 /**
121 * Get iso6393
122 *
123 * @return string
124 */
125 public function getIso6393()
126 {
127 return $this->iso6393;
128 }
129
130 /**
131 * Set created
132 *
133 * @param \DateTime $created
134 *
135 * @return Language
136 */
137 public function setCreated($created)
138 {
139 $this->created = $created;
140
141 return $this;
142 }
143
144 /**
145 * Get created
146 *
147 * @return \DateTime
148 */
149 public function getCreated()
150 {
151 return $this->created;
152 }
153
154 /**
155 * Set updated
156 *
157 * @param \DateTime $updated
158 *
159 * @return Language
160 */
161 public function setUpdated($updated)
162 {
163 $this->updated = $updated;
164
165 return $this;
166 }
167
168 /**
169 * Get updated
170 *
171 * @return \DateTime
172 */
173 public function getUpdated()
174 {
175 return $this->updated;
176 }
177
178 /**
179 * Add articleTranslation
180 *
181 * @param \Rapsys\BlogBundle\Entity\ArticleTranslation $articleTranslation
182 *
183 * @return Language
184 */
185 public function addArticleTranslation(\Rapsys\BlogBundle\Entity\ArticleTranslation $articleTranslation)
186 {
187 $this->article_translations[] = $articleTranslation;
188
189 return $this;
190 }
191
192 /**
193 * Remove articleTranslation
194 *
195 * @param \Rapsys\BlogBundle\Entity\ArticleTranslation $articleTranslation
196 */
197 public function removeArticleTranslation(\Rapsys\BlogBundle\Entity\ArticleTranslation $articleTranslation)
198 {
199 $this->article_translations->removeElement($articleTranslation);
200 }
201
202 /**
203 * Get articleTranslations
204 *
205 * @return \Doctrine\Common\Collections\Collection
206 */
207 public function getArticleTranslations()
208 {
209 return $this->article_translations;
210 }
211
212 /**
213 * Add keywordTranslation
214 *
215 * @param \Rapsys\BlogBundle\Entity\KeywordTranslation $keywordTranslation
216 *
217 * @return Language
218 */
219 public function addKeywordTranslation(\Rapsys\BlogBundle\Entity\KeywordTranslation $keywordTranslation)
220 {
221 $this->keyword_translations[] = $keywordTranslation;
222
223 return $this;
224 }
225
226 /**
227 * Remove keywordTranslation
228 *
229 * @param \Rapsys\BlogBundle\Entity\KeywordTranslation $keywordTranslation
230 */
231 public function removeKeywordTranslation(\Rapsys\BlogBundle\Entity\KeywordTranslation $keywordTranslation)
232 {
233 $this->keyword_translations->removeElement($keywordTranslation);
234 }
235
236 /**
237 * Get keywordTranslations
238 *
239 * @return \Doctrine\Common\Collections\Collection
240 */
241 public function getKeywordTranslations()
242 {
243 return $this->keyword_translations;
244 }
245
246 /**
247 * Add siteTranslation
248 *
249 * @param \Rapsys\BlogBundle\Entity\SiteTranslation $siteTranslation
250 *
251 * @return Language
252 */
253 public function addSiteTranslation(\Rapsys\BlogBundle\Entity\SiteTranslation $siteTranslation)
254 {
255 $this->site_translations[] = $siteTranslation;
256
257 return $this;
258 }
259
260 /**
261 * Remove siteTranslation
262 *
263 * @param \Rapsys\BlogBundle\Entity\SiteTranslation $siteTranslation
264 */
265 public function removeSiteTranslation(\Rapsys\BlogBundle\Entity\SiteTranslation $siteTranslation)
266 {
267 $this->site_translations->removeElement($siteTranslation);
268 }
269
270 /**
271 * Get siteTranslations
272 *
273 * @return \Doctrine\Common\Collections\Collection
274 */
275 public function getSiteTranslations()
276 {
277 return $this->site_translations;
278 }
279
280 /**
281 * Add languageTranslation
282 *
283 * @param \Rapsys\BlogBundle\Entity\LanguageTranslation $languageTranslation
284 *
285 * @return Language
286 */
287 public function addLanguageTranslation(\Rapsys\BlogBundle\Entity\LanguageTranslation $languageTranslation)
288 {
289 $this->language_translations[] = $languageTranslation;
290
291 return $this;
292 }
293
294 /**
295 * Remove languageTranslation
296 *
297 * @param \Rapsys\BlogBundle\Entity\LanguageTranslation $languageTranslation
298 */
299 public function removeLanguageTranslation(\Rapsys\BlogBundle\Entity\LanguageTranslation $languageTranslation)
300 {
301 $this->language_translations->removeElement($languageTranslation);
302 }
303
304 /**
305 * Get languageTranslations
306 *
307 * @return \Doctrine\Common\Collections\Collection
308 */
309 public function getLanguageTranslations()
310 {
311 return $this->language_translations;
312 }
313
314 /**
315 * Add targetTranslation
316 *
317 * @param \Rapsys\BlogBundle\Entity\LanguageTranslation $targetTranslation
318 *
319 * @return Language
320 */
321 public function addTargetTranslation(\Rapsys\BlogBundle\Entity\LanguageTranslation $targetTranslation)
322 {
323 $this->target_translations[] = $targetTranslation;
324
325 return $this;
326 }
327
328 /**
329 * Remove targetTranslation
330 *
331 * @param \Rapsys\BlogBundle\Entity\LanguageTranslation $targetTranslation
332 */
333 public function removeTargetTranslation(\Rapsys\BlogBundle\Entity\LanguageTranslation $targetTranslation)
334 {
335 $this->target_translations->removeElement($targetTranslation);
336 }
337
338 /**
339 * Get targetTranslations
340 *
341 * @return \Doctrine\Common\Collections\Collection
342 */
343 public function getTargetTranslations()
344 {
345 return $this->target_translations;
346 }
347
348 /**
349 * Set id
350 *
351 * @param integer $id
352 *
353 * @return Language
354 */
355 public function setId($id)
356 {
357 $this->id = $id;
358
359 return $this;
360 }
361 }