]> Raphaƫl G. Git Repositories - blogbundle/blob - Entity/LanguageTranslation.php
Add user translation entity
[blogbundle] / Entity / LanguageTranslation.php
1 <?php
2
3 namespace Rapsys\BlogBundle\Entity;
4
5 /**
6 * LanguageTranslation
7 */
8 class LanguageTranslation
9 {
10 /**
11 * @var integer
12 */
13 private $language_id;
14
15 /**
16 * @var integer
17 */
18 private $target_id;
19
20 /**
21 * @var string
22 */
23 private $title;
24
25 /**
26 * @var \DateTime
27 */
28 private $created;
29
30 /**
31 * @var \DateTime
32 */
33 private $updated;
34
35 /**
36 * @var \Rapsys\BlogBundle\Entity\Language
37 */
38 private $language;
39
40 /**
41 * @var \Rapsys\BlogBundle\Entity\Language
42 */
43 private $target;
44
45
46 /**
47 * Set languageId
48 *
49 * @param integer $languageId
50 *
51 * @return LanguageTranslation
52 */
53 public function setLanguageId($languageId)
54 {
55 $this->language_id = $languageId;
56
57 return $this;
58 }
59
60 /**
61 * Get languageId
62 *
63 * @return integer
64 */
65 public function getLanguageId()
66 {
67 return $this->language_id;
68 }
69
70 /**
71 * Set targetId
72 *
73 * @param integer $targetId
74 *
75 * @return LanguageTranslation
76 */
77 public function setTargetId($targetId)
78 {
79 $this->target_id = $targetId;
80
81 return $this;
82 }
83
84 /**
85 * Get targetId
86 *
87 * @return integer
88 */
89 public function getTargetId()
90 {
91 return $this->target_id;
92 }
93
94 /**
95 * Set title
96 *
97 * @param string $title
98 *
99 * @return LanguageTranslation
100 */
101 public function setTitle($title)
102 {
103 $this->title = $title;
104
105 return $this;
106 }
107
108 /**
109 * Get title
110 *
111 * @return string
112 */
113 public function getTitle()
114 {
115 return $this->title;
116 }
117
118 /**
119 * Set created
120 *
121 * @param \DateTime $created
122 *
123 * @return LanguageTranslation
124 */
125 public function setCreated($created)
126 {
127 $this->created = $created;
128
129 return $this;
130 }
131
132 /**
133 * Get created
134 *
135 * @return \DateTime
136 */
137 public function getCreated()
138 {
139 return $this->created;
140 }
141
142 /**
143 * Set updated
144 *
145 * @param \DateTime $updated
146 *
147 * @return LanguageTranslation
148 */
149 public function setUpdated($updated)
150 {
151 $this->updated = $updated;
152
153 return $this;
154 }
155
156 /**
157 * Get updated
158 *
159 * @return \DateTime
160 */
161 public function getUpdated()
162 {
163 return $this->updated;
164 }
165
166 /**
167 * Set language
168 *
169 * @param \Rapsys\BlogBundle\Entity\Language $language
170 *
171 * @return LanguageTranslation
172 */
173 public function setLanguage(\Rapsys\BlogBundle\Entity\Language $language = null)
174 {
175 $this->language = $language;
176
177 return $this;
178 }
179
180 /**
181 * Get language
182 *
183 * @return \Rapsys\BlogBundle\Entity\Language
184 */
185 public function getLanguage()
186 {
187 return $this->language;
188 }
189
190 /**
191 * Set target
192 *
193 * @param \Rapsys\BlogBundle\Entity\Language $target
194 *
195 * @return LanguageTranslation
196 */
197 public function setTarget(\Rapsys\BlogBundle\Entity\Language $target = null)
198 {
199 $this->target = $target;
200
201 return $this;
202 }
203
204 /**
205 * Get target
206 *
207 * @return \Rapsys\BlogBundle\Entity\Language
208 */
209 public function getTarget()
210 {
211 return $this->target;
212 }
213 }