1 | <?php |
||
13 | class UploadTranslation extends AbstractApi |
||
14 | { |
||
15 | /** @var array */ |
||
16 | protected $translations; |
||
17 | |||
18 | /** @var string */ |
||
19 | protected $locale; |
||
20 | |||
21 | /** @var bool */ |
||
22 | protected $areDuplicatesImported = false; |
||
23 | |||
24 | /** @var bool */ |
||
25 | protected $areEqualSuggestionsImported = false; |
||
26 | |||
27 | /** @var bool */ |
||
28 | protected $areImportsAutoApproved = false; |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | public function execute() |
||
66 | |||
67 | /** |
||
68 | * @param string $crowdinPath the Crowdin file path |
||
69 | * @param string $localPath the local file path |
||
70 | * |
||
71 | * @throws InvalidArgumentException |
||
72 | * |
||
73 | * @return UploadTranslation |
||
74 | */ |
||
75 | public function addTranslation($crowdinPath, $localPath) |
||
84 | |||
85 | /** |
||
86 | * @return array |
||
87 | */ |
||
88 | public function getTranslations() |
||
92 | |||
93 | /** |
||
94 | * @param bool $importsAutoApproved |
||
95 | * |
||
96 | * @throws InvalidArgumentException |
||
97 | * |
||
98 | * @return UploadTranslation |
||
99 | */ |
||
100 | public function setImportsAutoApproved($importsAutoApproved) |
||
110 | |||
111 | /** |
||
112 | * @return bool |
||
113 | */ |
||
114 | public function areImportsAutoApproved() |
||
118 | |||
119 | /** |
||
120 | * @param bool $duplicatesImported |
||
121 | * |
||
122 | * @throws InvalidArgumentException |
||
123 | * |
||
124 | * @return UploadTranslation |
||
125 | */ |
||
126 | public function setDuplicatesImported($duplicatesImported) |
||
136 | |||
137 | /** |
||
138 | * @return bool |
||
139 | */ |
||
140 | public function areDuplicatesImported() |
||
144 | |||
145 | /** |
||
146 | * @param bool $equalSuggestionsImported |
||
147 | * |
||
148 | * @throws InvalidArgumentException |
||
149 | * |
||
150 | * @return UploadTranslation |
||
151 | */ |
||
152 | public function setEqualSuggestionsImported($equalSuggestionsImported) |
||
162 | |||
163 | /** |
||
164 | * @return bool |
||
165 | */ |
||
166 | public function areEqualSuggestionsImported() |
||
170 | |||
171 | /** |
||
172 | * @param string $locale |
||
173 | * |
||
174 | * @return UploadTranslation |
||
175 | */ |
||
176 | public function setLocale($locale) |
||
182 | |||
183 | /** |
||
184 | * @return string |
||
185 | */ |
||
186 | public function getLocale() |
||
190 | } |
||
191 |