GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Test Failed
Push — master ( 6355a4...07354d )
by
unknown
06:07
created

Translate::withTargetLanguage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
ccs 0
cts 0
cp 0
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace AlibabaCloud\Alimt\V20181012;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method CreateDocTranslateTask createDocTranslateTask(array $options = [])
9
 * @method GetDocTranslateTask getDocTranslateTask(array $options = [])
10
 * @method Translate translate(array $options = [])
11
 * @method TranslateECommerce translateECommerce(array $options = [])
12
 * @method TranslateGeneral translateGeneral(array $options = [])
13
 */
14
class AlimtApiResolver extends ApiResolver
15
{
16
}
17
18
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
19
{
20
    /** @var string */
21
    public $product = 'alimt';
22
23
    /** @var string */
24
    public $version = '2018-10-12';
25
26
    /** @var string */
27
    public $method = 'POST';
28
29
    /** @var string */
30
    public $serviceCode = 'alimt';
31
}
32
33
/**
34
 * @method string getSourceLanguage()
35
 * @method string getClientToken()
36
 * @method string getScene()
37
 * @method string getFileUrl()
38
 * @method string getTargetLanguage()
39
 * @method string getCallbackUrl()
40
 */
41
class CreateDocTranslateTask extends Rpc
42
{
43
44
    /**
45
     * @param string $value
46
     *
47
     * @return $this
48
     */
49
    public function withSourceLanguage($value)
50
    {
51
        $this->data['SourceLanguage'] = $value;
52
        $this->options['form_params']['SourceLanguage'] = $value;
53
54
        return $this;
55
    }
56
57
    /**
58
     * @param string $value
59
     *
60
     * @return $this
61
     */
62
    public function withClientToken($value)
63
    {
64
        $this->data['ClientToken'] = $value;
65
        $this->options['form_params']['ClientToken'] = $value;
66
67
        return $this;
68
    }
69
70
    /**
71
     * @param string $value
72
     *
73
     * @return $this
74
     */
75
    public function withScene($value)
76
    {
77
        $this->data['Scene'] = $value;
78
        $this->options['form_params']['Scene'] = $value;
79
80
        return $this;
81
    }
82
83
    /**
84
     * @param string $value
85
     *
86
     * @return $this
87
     */
88
    public function withFileUrl($value)
89
    {
90
        $this->data['FileUrl'] = $value;
91
        $this->options['form_params']['FileUrl'] = $value;
92
93
        return $this;
94
    }
95
96
    /**
97
     * @param string $value
98
     *
99
     * @return $this
100
     */
101
    public function withTargetLanguage($value)
102
    {
103
        $this->data['TargetLanguage'] = $value;
104
        $this->options['form_params']['TargetLanguage'] = $value;
105
106
        return $this;
107
    }
108
109
    /**
110
     * @param string $value
111
     *
112
     * @return $this
113
     */
114
    public function withCallbackUrl($value)
115
    {
116
        $this->data['CallbackUrl'] = $value;
117
        $this->options['form_params']['CallbackUrl'] = $value;
118
119
        return $this;
120
    }
121 1
}
122
123 1
/**
124 1
 * @method string getTaskId()
125
 * @method $this withTaskId($value)
126 1
 */
127
class GetDocTranslateTask extends Rpc
128
{
129
130
    /** @var string */
131
    public $method = 'GET';
132
}
133
134 1
/**
135
 * @method string getSourceLanguage()
136 1
 * @method string getSourceText()
137 1
 * @method string getFormatType()
138
 * @method string getScene()
139 1
 * @method string getTargetLanguage()
140
 */
141
class Translate extends Rpc
142
{
143
144
    /**
145
     * @param string $value
146
     *
147 1
     * @return $this
148
     */
149 1
    public function withSourceLanguage($value)
150 1
    {
151
        $this->data['SourceLanguage'] = $value;
152 1
        $this->options['form_params']['SourceLanguage'] = $value;
153
154
        return $this;
155
    }
156
157
    /**
158
     * @param string $value
159
     *
160 1
     * @return $this
161
     */
162 1
    public function withSourceText($value)
163 1
    {
164
        $this->data['SourceText'] = $value;
165 1
        $this->options['form_params']['SourceText'] = $value;
166
167
        return $this;
168
    }
169
170
    /**
171
     * @param string $value
172
     *
173 1
     * @return $this
174
     */
175 1
    public function withFormatType($value)
176 1
    {
177
        $this->data['FormatType'] = $value;
178 1
        $this->options['form_params']['FormatType'] = $value;
179
180
        return $this;
181
    }
182
183
    /**
184
     * @param string $value
185
     *
186
     * @return $this
187
     */
188
    public function withScene($value)
189
    {
190
        $this->data['Scene'] = $value;
191
        $this->options['form_params']['Scene'] = $value;
192
193
        return $this;
194
    }
195
196
    /**
197
     * @param string $value
198
     *
199
     * @return $this
200
     */
201
    public function withTargetLanguage($value)
202
    {
203
        $this->data['TargetLanguage'] = $value;
204
        $this->options['form_params']['TargetLanguage'] = $value;
205
206
        return $this;
207
    }
208
}
209
210
/**
211
 * @method string getSourceLanguage()
212
 * @method string getSourceText()
213
 * @method string getFormatType()
214
 * @method string getScene()
215
 * @method string getTargetLanguage()
216
 */
217
class TranslateECommerce extends Rpc
218
{
219
220
    /**
221
     * @param string $value
222
     *
223
     * @return $this
224
     */
225
    public function withSourceLanguage($value)
226
    {
227
        $this->data['SourceLanguage'] = $value;
228
        $this->options['form_params']['SourceLanguage'] = $value;
229
230
        return $this;
231
    }
232
233
    /**
234
     * @param string $value
235
     *
236
     * @return $this
237
     */
238
    public function withSourceText($value)
239
    {
240
        $this->data['SourceText'] = $value;
241
        $this->options['form_params']['SourceText'] = $value;
242
243
        return $this;
244
    }
245
246
    /**
247
     * @param string $value
248
     *
249
     * @return $this
250
     */
251
    public function withFormatType($value)
252
    {
253
        $this->data['FormatType'] = $value;
254
        $this->options['form_params']['FormatType'] = $value;
255
256
        return $this;
257
    }
258
259
    /**
260
     * @param string $value
261
     *
262
     * @return $this
263
     */
264
    public function withScene($value)
265
    {
266
        $this->data['Scene'] = $value;
267
        $this->options['form_params']['Scene'] = $value;
268
269
        return $this;
270
    }
271
272
    /**
273
     * @param string $value
274
     *
275
     * @return $this
276
     */
277
    public function withTargetLanguage($value)
278
    {
279
        $this->data['TargetLanguage'] = $value;
280
        $this->options['form_params']['TargetLanguage'] = $value;
281
282
        return $this;
283
    }
284
}
285
286
/**
287
 * @method string getSourceLanguage()
288
 * @method string getSourceText()
289
 * @method string getFormatType()
290
 * @method string getScene()
291
 * @method string getTargetLanguage()
292
 */
293
class TranslateGeneral extends Rpc
294
{
295
296
    /**
297
     * @param string $value
298
     *
299
     * @return $this
300
     */
301
    public function withSourceLanguage($value)
302
    {
303
        $this->data['SourceLanguage'] = $value;
304
        $this->options['form_params']['SourceLanguage'] = $value;
305
306
        return $this;
307
    }
308
309
    /**
310
     * @param string $value
311
     *
312
     * @return $this
313
     */
314
    public function withSourceText($value)
315
    {
316
        $this->data['SourceText'] = $value;
317
        $this->options['form_params']['SourceText'] = $value;
318
319
        return $this;
320
    }
321
322
    /**
323
     * @param string $value
324
     *
325
     * @return $this
326
     */
327
    public function withFormatType($value)
328
    {
329
        $this->data['FormatType'] = $value;
330
        $this->options['form_params']['FormatType'] = $value;
331
332
        return $this;
333
    }
334
335
    /**
336
     * @param string $value
337
     *
338
     * @return $this
339
     */
340
    public function withScene($value)
341
    {
342
        $this->data['Scene'] = $value;
343
        $this->options['form_params']['Scene'] = $value;
344
345
        return $this;
346
    }
347
348
    /**
349
     * @param string $value
350
     *
351
     * @return $this
352
     */
353
    public function withTargetLanguage($value)
354
    {
355
        $this->data['TargetLanguage'] = $value;
356
        $this->options['form_params']['TargetLanguage'] = $value;
357
358
        return $this;
359
    }
360
}
361