1 | <?php |
||
11 | class UploadTranslation extends AbstractApi |
||
12 | { |
||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | protected $translations; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $locale; |
||
22 | |||
23 | /** |
||
24 | * @var bool |
||
25 | */ |
||
26 | protected $areDuplicatesImported = false; |
||
27 | |||
28 | /** |
||
29 | * @var bool |
||
30 | */ |
||
31 | protected $areEqualSuggestionsImported = false; |
||
32 | |||
33 | /** |
||
34 | * @var bool |
||
35 | */ |
||
36 | protected $areImportsAutoApproved = false; |
||
37 | |||
38 | /** |
||
39 | * @return mixed |
||
40 | */ |
||
41 | public function execute() |
||
74 | |||
75 | /** |
||
76 | * @param string $crowdinPath the Crowdin file path |
||
77 | * @param string $localPath the local file path |
||
78 | * |
||
79 | * @throws \InvalidArgumentException |
||
80 | * @return UploadTranslation |
||
81 | */ |
||
82 | public function addTranslation($crowdinPath, $localPath) |
||
91 | |||
92 | /** |
||
93 | * @return array |
||
94 | */ |
||
95 | public function getTranslations() |
||
99 | |||
100 | /** |
||
101 | * @param $shouldAutoApproveImported |
||
102 | * @return UploadTranslation |
||
103 | * @throws \InvalidArgumentException |
||
104 | */ |
||
105 | public function setImportsAutoApproved($shouldAutoApproveImported) |
||
115 | |||
116 | /** |
||
117 | * @return boolean |
||
118 | */ |
||
119 | public function areImportsAutoApproved() |
||
123 | |||
124 | /** |
||
125 | * @param boolean $shouldImportDuplicates |
||
126 | * @return UploadTranslation |
||
127 | * @throws \InvalidArgumentException |
||
128 | */ |
||
129 | public function setDuplicatesImported($shouldImportDuplicates) |
||
139 | |||
140 | /** |
||
141 | * @return boolean |
||
142 | */ |
||
143 | public function areDuplicatesImported() |
||
147 | |||
148 | /** |
||
149 | * @param boolean $shouldImportEqualSuggestions |
||
150 | * @return UploadTranslation |
||
151 | * @throws \InvalidArgumentException |
||
152 | */ |
||
153 | public function setEqualSuggestionsImported($shouldImportEqualSuggestions) |
||
163 | |||
164 | /** |
||
165 | * @return boolean |
||
166 | */ |
||
167 | public function areEqualSuggestionsImported() |
||
171 | |||
172 | /** |
||
173 | * @param string $locale |
||
174 | */ |
||
175 | public function setLocale($locale) |
||
179 | |||
180 | /** |
||
181 | * @return string |
||
182 | */ |
||
183 | public function getLocale() |
||
187 | |||
188 | } |
||
189 |