1 | <?php |
||
10 | class Asset implements CreatableFromArray |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $id; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $type; |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $name; |
||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | private $context; |
||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $notes; |
||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | private $modified; |
||
37 | /** |
||
38 | * @var int |
||
39 | */ |
||
40 | private $translated; |
||
41 | /** |
||
42 | * @var int |
||
43 | */ |
||
44 | private $untranslated; |
||
45 | /** |
||
46 | * @var int |
||
47 | */ |
||
48 | private $incomplate; |
||
49 | |||
50 | /** |
||
51 | * @var int |
||
52 | */ |
||
53 | private $plural; |
||
54 | |||
55 | /** |
||
56 | * @var array |
||
57 | */ |
||
58 | private $tags = []; |
||
59 | |||
60 | private function __construct() |
||
63 | |||
64 | /** |
||
65 | * @param array $data |
||
66 | * |
||
67 | * @return Asset |
||
68 | */ |
||
69 | public static function createFromArray(array $data) |
||
109 | |||
110 | /** |
||
111 | * @return string |
||
112 | */ |
||
113 | public function getId(): string |
||
117 | |||
118 | /** |
||
119 | * @param string $id |
||
120 | */ |
||
121 | private function setId($id) |
||
125 | |||
126 | /** |
||
127 | * @return string |
||
128 | */ |
||
129 | public function getType(): string |
||
133 | |||
134 | /** |
||
135 | * @param string $type |
||
136 | */ |
||
137 | private function setType($type) |
||
141 | |||
142 | /** |
||
143 | * @return string |
||
144 | */ |
||
145 | public function getName(): string |
||
149 | |||
150 | /** |
||
151 | * @param string $name |
||
152 | */ |
||
153 | private function setName($name) |
||
157 | |||
158 | /** |
||
159 | * @return string |
||
160 | */ |
||
161 | public function getContext(): string |
||
165 | |||
166 | /** |
||
167 | * @param string $context |
||
168 | */ |
||
169 | private function setContext($context) |
||
173 | |||
174 | /** |
||
175 | * @return string |
||
176 | */ |
||
177 | public function getNotes(): string |
||
181 | |||
182 | /** |
||
183 | * @param string $notes |
||
184 | */ |
||
185 | private function setNotes($notes) |
||
189 | |||
190 | /** |
||
191 | * @return string |
||
192 | */ |
||
193 | public function getModified(): string |
||
197 | |||
198 | /** |
||
199 | * @param string $modified |
||
200 | */ |
||
201 | private function setModified($modified) |
||
205 | |||
206 | /** |
||
207 | * @return int |
||
208 | */ |
||
209 | public function getTranslated(): int |
||
213 | |||
214 | /** |
||
215 | * @param int $translated |
||
216 | */ |
||
217 | private function setTranslated($translated) |
||
221 | |||
222 | /** |
||
223 | * @return int |
||
224 | */ |
||
225 | public function getUntranslated(): int |
||
229 | |||
230 | /** |
||
231 | * @param int $untranslated |
||
232 | */ |
||
233 | private function setUntranslated($untranslated) |
||
237 | |||
238 | /** |
||
239 | * @return int |
||
240 | */ |
||
241 | public function getIncomplate(): int |
||
245 | |||
246 | /** |
||
247 | * @param int $incomplate |
||
248 | */ |
||
249 | private function setIncomplate($incomplate) |
||
253 | |||
254 | /** |
||
255 | * @return int |
||
256 | */ |
||
257 | public function getPlurals(): int |
||
261 | |||
262 | /** |
||
263 | * @param int $plural |
||
264 | */ |
||
265 | private function setPlurals($plural) |
||
269 | |||
270 | /** |
||
271 | * @return array |
||
272 | */ |
||
273 | public function getTags(): array |
||
277 | |||
278 | /** |
||
279 | * @param array $tags |
||
280 | */ |
||
281 | private function setTags($tags) |
||
285 | } |
||
286 |