1 | <?php |
||
17 | final class Translation implements CreatableFromArray |
||
18 | { |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $id; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $content; |
||
28 | |||
29 | /** |
||
30 | * @var bool |
||
31 | */ |
||
32 | private $unverified; |
||
33 | |||
34 | /** |
||
35 | * @var bool |
||
36 | */ |
||
37 | private $excluded; |
||
38 | |||
39 | /** |
||
40 | * @var string |
||
41 | */ |
||
42 | private $pluralSuffix; |
||
43 | |||
44 | /** |
||
45 | * @var Key |
||
46 | */ |
||
47 | private $key; |
||
48 | |||
49 | /** |
||
50 | * @var string |
||
51 | */ |
||
52 | private $createdAt; |
||
53 | |||
54 | /** |
||
55 | * @var string |
||
56 | */ |
||
57 | private $updatedAt; |
||
58 | |||
59 | /** |
||
60 | * @var array |
||
61 | */ |
||
62 | private $placeholders = []; |
||
63 | |||
64 | /** |
||
65 | * @var Locale |
||
66 | */ |
||
67 | private $locale; |
||
68 | |||
69 | /** |
||
70 | * @param array $data |
||
71 | * |
||
72 | * @return Translation |
||
73 | */ |
||
74 | public static function createFromArray(array $data) |
||
111 | |||
112 | public function getId(): string |
||
116 | |||
117 | private function setId(string $id) |
||
121 | |||
122 | public function getContent(): string |
||
126 | |||
127 | private function setContent(string $content) |
||
131 | |||
132 | public function isUnverified(): bool |
||
136 | |||
137 | private function setUnverified(bool $unverified) |
||
141 | |||
142 | public function isExcluded(): bool |
||
146 | |||
147 | private function setExcluded(bool $excluded) |
||
151 | |||
152 | public function getPluralSuffix(): string |
||
156 | |||
157 | private function setPluralSuffix(string $pluralSuffix) |
||
161 | |||
162 | public function getKey(): Key |
||
166 | |||
167 | private function setKey(Key $key) |
||
171 | |||
172 | public function getCreatedAt(): string |
||
176 | |||
177 | private function setCreatedAt(string $createdAt) |
||
181 | |||
182 | public function getUpdatedAt(): string |
||
186 | |||
187 | private function setUpdatedAt(string $updatedAt) |
||
191 | |||
192 | public function getPlaceholders(): array |
||
196 | |||
197 | private function setPlaceholders(array $placeholders) |
||
201 | |||
202 | public function getLocale(): Locale |
||
206 | |||
207 | private function setLocale(Locale $locale) |
||
211 | } |
||
212 |