1 | <?php |
||
5 | class Entry |
||
6 | { |
||
7 | /** @var string */ |
||
8 | protected $msgId; |
||
9 | |||
10 | /** @var string */ |
||
11 | protected $msgStr; |
||
12 | |||
13 | /** @var string */ |
||
14 | protected $msgIdPlural; |
||
15 | |||
16 | /** @var string[] */ |
||
17 | protected $msgStrPlurals; |
||
18 | |||
19 | /** @var string|null */ |
||
20 | protected $msgCtxt; |
||
21 | |||
22 | /** @var Entry|null */ |
||
23 | protected $previousEntry; |
||
24 | |||
25 | /** @var bool */ |
||
26 | protected $obsolete; |
||
27 | |||
28 | /** @var array */ |
||
29 | protected $flags; |
||
30 | |||
31 | /** @var array */ |
||
32 | protected $translatorComments; |
||
33 | |||
34 | /** @var array */ |
||
35 | protected $developerComments; |
||
36 | |||
37 | /** @var array */ |
||
38 | protected $reference; |
||
39 | |||
40 | /** |
||
41 | * @param string $msgId |
||
42 | * @param string $msgStr |
||
43 | */ |
||
44 | public function __construct($msgId, $msgStr = null) |
||
53 | |||
54 | /** |
||
55 | * @param string $msgId |
||
56 | * |
||
57 | * @return Entry |
||
58 | */ |
||
59 | public function setMsgId($msgId) |
||
65 | |||
66 | /** |
||
67 | * @param string $msgStr |
||
68 | * |
||
69 | * @return Entry |
||
70 | */ |
||
71 | public function setMsgStr($msgStr) |
||
77 | |||
78 | /** |
||
79 | * @param string $msgIdPlural |
||
80 | * |
||
81 | * @return Entry |
||
82 | */ |
||
83 | public function setMsgIdPlural($msgIdPlural) |
||
89 | |||
90 | /** |
||
91 | * @param string $msgCtxt |
||
92 | * |
||
93 | * @return Entry |
||
94 | */ |
||
95 | public function setMsgCtxt($msgCtxt) |
||
101 | |||
102 | /** |
||
103 | * @param null|Entry $previousEntry |
||
104 | * |
||
105 | * @return Entry |
||
106 | */ |
||
107 | public function setPreviousEntry($previousEntry) |
||
113 | |||
114 | /** |
||
115 | * @param bool $obsolete |
||
116 | * |
||
117 | * @return Entry |
||
118 | */ |
||
119 | public function setObsolete($obsolete) |
||
125 | |||
126 | /** |
||
127 | * @param array $flags |
||
128 | * |
||
129 | * @return Entry |
||
130 | */ |
||
131 | public function setFlags($flags) |
||
137 | |||
138 | /** |
||
139 | * @param array $translatorComments |
||
140 | * |
||
141 | * @return Entry |
||
142 | */ |
||
143 | public function setTranslatorComments($translatorComments) |
||
149 | |||
150 | /** |
||
151 | * @param array $developerComments |
||
152 | * |
||
153 | * @return Entry |
||
154 | */ |
||
155 | public function setDeveloperComments($developerComments) |
||
161 | |||
162 | /** |
||
163 | * @param array $reference |
||
164 | * |
||
165 | * @return Entry |
||
166 | */ |
||
167 | public function setReference($reference) |
||
173 | |||
174 | /** |
||
175 | * @param string[] $msgStrPlurals |
||
176 | * |
||
177 | * @return Entry |
||
178 | */ |
||
179 | public function setMsgStrPlurals($msgStrPlurals) |
||
185 | |||
186 | /** |
||
187 | * @return string |
||
188 | */ |
||
189 | public function getMsgId() |
||
193 | |||
194 | /** |
||
195 | * @return string |
||
196 | */ |
||
197 | public function getMsgStr() |
||
201 | |||
202 | /** |
||
203 | * @return string |
||
204 | */ |
||
205 | public function getMsgIdPlural() |
||
209 | |||
210 | /** |
||
211 | * @return string|null |
||
212 | */ |
||
213 | public function getMsgCtxt() |
||
217 | |||
218 | /** |
||
219 | * @return null|Entry |
||
220 | */ |
||
221 | public function getPreviousEntry() |
||
225 | |||
226 | /** |
||
227 | * @return bool |
||
228 | */ |
||
229 | public function isObsolete() |
||
233 | |||
234 | /** |
||
235 | * @return bool |
||
236 | */ |
||
237 | public function isFuzzy() |
||
241 | |||
242 | /** |
||
243 | * @return bool |
||
244 | */ |
||
245 | public function isPlural() |
||
246 | { |
||
247 | return $this->getMsgIdPlural() !== null || $this->getMsgStrPlurals() !== null; |
||
248 | } |
||
249 | |||
250 | /** |
||
251 | * @return array |
||
252 | */ |
||
253 | public function getFlags() |
||
257 | |||
258 | /** |
||
259 | * @return array |
||
260 | */ |
||
261 | public function getTranslatorComments() |
||
265 | |||
266 | /** |
||
267 | * @return array |
||
268 | */ |
||
269 | public function getDeveloperComments() |
||
273 | |||
274 | /** |
||
275 | * @return array |
||
276 | */ |
||
277 | public function getReference() |
||
281 | |||
282 | /** |
||
283 | * @return string[] |
||
284 | */ |
||
285 | public function getMsgStrPlurals() |
||
289 | } |
||
290 |