]> Raphaƫl G. Git Repositories - blogbundle/blob - Entity/ArticleTranslation.php
Update copyright
[blogbundle] / Entity / ArticleTranslation.php
1 <?php
2
3 namespace Rapsys\BlogBundle\Entity;
4
5 /**
6 * ArticleTranslation
7 */
8 class ArticleTranslation
9 {
10 /**
11 * @var integer
12 */
13 private $article_id;
14
15 /**
16 * @var integer
17 */
18 private $language_id;
19
20 /**
21 * @var string
22 */
23 private $title;
24
25 /**
26 * @var string
27 */
28 private $description;
29
30 /**
31 * @var string
32 */
33 private $body;
34
35 /**
36 * @var \DateTime
37 */
38 private $created;
39
40 /**
41 * @var \DateTime
42 */
43 private $updated;
44
45 /**
46 * @var \Rapsys\BlogBundle\Entity\Article
47 */
48 private $article;
49
50 /**
51 * @var \Rapsys\BlogBundle\Entity\Language
52 */
53 private $language;
54
55
56 /**
57 * Set articleId
58 *
59 * @param integer $articleId
60 *
61 * @return ArticleTranslation
62 */
63 public function setArticleId($articleId)
64 {
65 $this->article_id = $articleId;
66
67 return $this;
68 }
69
70 /**
71 * Get articleId
72 *
73 * @return integer
74 */
75 public function getArticleId()
76 {
77 return $this->article_id;
78 }
79
80 /**
81 * Set languageId
82 *
83 * @param integer $languageId
84 *
85 * @return ArticleTranslation
86 */
87 public function setLanguageId($languageId)
88 {
89 $this->language_id = $languageId;
90
91 return $this;
92 }
93
94 /**
95 * Get languageId
96 *
97 * @return integer
98 */
99 public function getLanguageId()
100 {
101 return $this->language_id;
102 }
103
104 /**
105 * Set title
106 *
107 * @param string $title
108 *
109 * @return ArticleTranslation
110 */
111 public function setTitle($title)
112 {
113 $this->title = $title;
114
115 return $this;
116 }
117
118 /**
119 * Get title
120 *
121 * @return string
122 */
123 public function getTitle()
124 {
125 return $this->title;
126 }
127
128 /**
129 * Set description
130 *
131 * @param string $description
132 *
133 * @return ArticleTranslation
134 */
135 public function setDescription($description)
136 {
137 $this->description = $description;
138
139 return $this;
140 }
141
142 /**
143 * Get description
144 *
145 * @return string
146 */
147 public function getDescription()
148 {
149 return $this->description;
150 }
151
152 /**
153 * Set body
154 *
155 * @param string $body
156 *
157 * @return ArticleTranslation
158 */
159 public function setBody($body)
160 {
161 $this->body = $body;
162
163 return $this;
164 }
165
166 /**
167 * Get body
168 *
169 * @return string
170 */
171 public function getBody()
172 {
173 return $this->body;
174 }
175
176 /**
177 * Set created
178 *
179 * @param \DateTime $created
180 *
181 * @return ArticleTranslation
182 */
183 public function setCreated($created)
184 {
185 $this->created = $created;
186
187 return $this;
188 }
189
190 /**
191 * Get created
192 *
193 * @return \DateTime
194 */
195 public function getCreated()
196 {
197 return $this->created;
198 }
199
200 /**
201 * Set updated
202 *
203 * @param \DateTime $updated
204 *
205 * @return ArticleTranslation
206 */
207 public function setUpdated($updated)
208 {
209 $this->updated = $updated;
210
211 return $this;
212 }
213
214 /**
215 * Get updated
216 *
217 * @return \DateTime
218 */
219 public function getUpdated()
220 {
221 return $this->updated;
222 }
223
224 /**
225 * Set article
226 *
227 * @param \Rapsys\BlogBundle\Entity\Article $article
228 *
229 * @return ArticleTranslation
230 */
231 public function setArticle(\Rapsys\BlogBundle\Entity\Article $article = null)
232 {
233 $this->article = $article;
234
235 return $this;
236 }
237
238 /**
239 * Get article
240 *
241 * @return \Rapsys\BlogBundle\Entity\Article
242 */
243 public function getArticle()
244 {
245 return $this->article;
246 }
247
248 /**
249 * Set language
250 *
251 * @param \Rapsys\BlogBundle\Entity\Language $language
252 *
253 * @return ArticleTranslation
254 */
255 public function setLanguage(\Rapsys\BlogBundle\Entity\Language $language = null)
256 {
257 $this->language = $language;
258
259 return $this;
260 }
261
262 /**
263 * Get language
264 *
265 * @return \Rapsys\BlogBundle\Entity\Language
266 */
267 public function getLanguage()
268 {
269 return $this->language;
270 }
271 /**
272 * @var string
273 */
274 private $slug;
275
276
277 /**
278 * Set slug
279 *
280 * @param string $slug
281 *
282 * @return ArticleTranslation
283 */
284 public function setSlug($slug)
285 {
286 $this->slug = $slug;
287
288 return $this;
289 }
290
291 /**
292 * Get slug
293 *
294 * @return string
295 */
296 public function getSlug()
297 {
298 return $this->slug;
299 }
300 }