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 ( 46eec7...089f36 )
by
unknown
06:05
created

TranslateCertificate::withSourceLanguage()   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
rs 10
c 0
b 0
f 0
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 TranslateCertificate translateCertificate(array $options = [])
12
 * @method TranslateECommerce translateECommerce(array $options = [])
13
 * @method TranslateGeneral translateGeneral(array $options = [])
14
 */
15
class AlimtApiResolver extends ApiResolver
16
{
17
}
18
19
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
20
{
21
    /** @var string */
22
    public $product = 'alimt';
23
24
    /** @var string */
25
    public $version = '2018-10-12';
26
27
    /** @var string */
28
    public $method = 'POST';
29
30
    /** @var string */
31
    public $serviceCode = 'alimtct';
32
}
33
34
/**
35
 * @method string getSourceLanguage()
36
 * @method string getClientToken()
37
 * @method string getScene()
38
 * @method string getFileUrl()
39
 * @method string getTargetLanguage()
40
 * @method string getCallbackUrl()
41
 */
42
class CreateDocTranslateTask extends Rpc
43
{
44
45
    /**
46
     * @param string $value
47
     *
48
     * @return $this
49
     */
50
    public function withSourceLanguage($value)
51
    {
52
        $this->data['SourceLanguage'] = $value;
53
        $this->options['form_params']['SourceLanguage'] = $value;
54
55
        return $this;
56
    }
57
58
    /**
59
     * @param string $value
60
     *
61
     * @return $this
62
     */
63
    public function withClientToken($value)
64
    {
65
        $this->data['ClientToken'] = $value;
66
        $this->options['form_params']['ClientToken'] = $value;
67
68
        return $this;
69
    }
70
71
    /**
72
     * @param string $value
73
     *
74
     * @return $this
75
     */
76
    public function withScene($value)
77
    {
78
        $this->data['Scene'] = $value;
79
        $this->options['form_params']['Scene'] = $value;
80
81
        return $this;
82
    }
83
84
    /**
85
     * @param string $value
86
     *
87
     * @return $this
88
     */
89
    public function withFileUrl($value)
90
    {
91
        $this->data['FileUrl'] = $value;
92
        $this->options['form_params']['FileUrl'] = $value;
93
94
        return $this;
95
    }
96
97
    /**
98
     * @param string $value
99
     *
100
     * @return $this
101
     */
102
    public function withTargetLanguage($value)
103
    {
104
        $this->data['TargetLanguage'] = $value;
105
        $this->options['form_params']['TargetLanguage'] = $value;
106
107
        return $this;
108
    }
109
110
    /**
111
     * @param string $value
112
     *
113
     * @return $this
114
     */
115
    public function withCallbackUrl($value)
116
    {
117
        $this->data['CallbackUrl'] = $value;
118
        $this->options['form_params']['CallbackUrl'] = $value;
119
120
        return $this;
121 1
    }
122
}
123 1
124 1
/**
125
 * @method string getTaskId()
126 1
 * @method $this withTaskId($value)
127
 */
128
class GetDocTranslateTask extends Rpc
129
{
130
131
    /** @var string */
132
    public $method = 'GET';
133
}
134 1
135
/**
136 1
 * @method string getSourceLanguage()
137 1
 * @method string getSourceText()
138
 * @method string getFormatType()
139 1
 * @method string getScene()
140
 * @method string getTargetLanguage()
141
 */
142
class Translate extends Rpc
143
{
144
145
    /**
146
     * @param string $value
147 1
     *
148
     * @return $this
149 1
     */
150 1
    public function withSourceLanguage($value)
151
    {
152 1
        $this->data['SourceLanguage'] = $value;
153
        $this->options['form_params']['SourceLanguage'] = $value;
154
155
        return $this;
156
    }
157
158
    /**
159
     * @param string $value
160 1
     *
161
     * @return $this
162 1
     */
163 1
    public function withSourceText($value)
164
    {
165 1
        $this->data['SourceText'] = $value;
166
        $this->options['form_params']['SourceText'] = $value;
167
168
        return $this;
169
    }
170
171
    /**
172
     * @param string $value
173 1
     *
174
     * @return $this
175 1
     */
176 1
    public function withFormatType($value)
177
    {
178 1
        $this->data['FormatType'] = $value;
179
        $this->options['form_params']['FormatType'] = $value;
180
181
        return $this;
182
    }
183
184
    /**
185
     * @param string $value
186
     *
187
     * @return $this
188
     */
189
    public function withScene($value)
190
    {
191
        $this->data['Scene'] = $value;
192
        $this->options['form_params']['Scene'] = $value;
193
194
        return $this;
195
    }
196
197
    /**
198
     * @param string $value
199
     *
200
     * @return $this
201
     */
202
    public function withTargetLanguage($value)
203
    {
204
        $this->data['TargetLanguage'] = $value;
205
        $this->options['form_params']['TargetLanguage'] = $value;
206
207
        return $this;
208
    }
209
}
210
211
/**
212
 * @method string getSourceLanguage()
213
 * @method string getCertificateType()
214
 * @method string getResultType()
215
 * @method string getImageUrl()
216
 * @method string getTargetLanguage()
217
 */
218
class TranslateCertificate extends Rpc
219
{
220
221
    /**
222
     * @param string $value
223
     *
224
     * @return $this
225
     */
226
    public function withSourceLanguage($value)
227
    {
228
        $this->data['SourceLanguage'] = $value;
229
        $this->options['form_params']['SourceLanguage'] = $value;
230
231
        return $this;
232
    }
233
234
    /**
235
     * @param string $value
236
     *
237
     * @return $this
238
     */
239
    public function withCertificateType($value)
240
    {
241
        $this->data['CertificateType'] = $value;
242
        $this->options['form_params']['CertificateType'] = $value;
243
244
        return $this;
245
    }
246
247
    /**
248
     * @param string $value
249
     *
250
     * @return $this
251
     */
252
    public function withResultType($value)
253
    {
254
        $this->data['ResultType'] = $value;
255
        $this->options['form_params']['ResultType'] = $value;
256
257
        return $this;
258
    }
259
260
    /**
261
     * @param string $value
262
     *
263
     * @return $this
264
     */
265
    public function withImageUrl($value)
266
    {
267
        $this->data['ImageUrl'] = $value;
268
        $this->options['form_params']['ImageUrl'] = $value;
269
270
        return $this;
271
    }
272
273
    /**
274
     * @param string $value
275
     *
276
     * @return $this
277
     */
278
    public function withTargetLanguage($value)
279
    {
280
        $this->data['TargetLanguage'] = $value;
281
        $this->options['form_params']['TargetLanguage'] = $value;
282
283
        return $this;
284
    }
285
}
286
287
/**
288
 * @method string getSourceLanguage()
289
 * @method string getSourceText()
290
 * @method string getFormatType()
291
 * @method string getScene()
292
 * @method string getTargetLanguage()
293
 */
294
class TranslateECommerce extends Rpc
295
{
296
297
    /**
298
     * @param string $value
299
     *
300
     * @return $this
301
     */
302
    public function withSourceLanguage($value)
303
    {
304
        $this->data['SourceLanguage'] = $value;
305
        $this->options['form_params']['SourceLanguage'] = $value;
306
307
        return $this;
308
    }
309
310
    /**
311
     * @param string $value
312
     *
313
     * @return $this
314
     */
315
    public function withSourceText($value)
316
    {
317
        $this->data['SourceText'] = $value;
318
        $this->options['form_params']['SourceText'] = $value;
319
320
        return $this;
321
    }
322
323
    /**
324
     * @param string $value
325
     *
326
     * @return $this
327
     */
328
    public function withFormatType($value)
329
    {
330
        $this->data['FormatType'] = $value;
331
        $this->options['form_params']['FormatType'] = $value;
332
333
        return $this;
334
    }
335
336
    /**
337
     * @param string $value
338
     *
339
     * @return $this
340
     */
341
    public function withScene($value)
342
    {
343
        $this->data['Scene'] = $value;
344
        $this->options['form_params']['Scene'] = $value;
345
346
        return $this;
347
    }
348
349
    /**
350
     * @param string $value
351
     *
352
     * @return $this
353
     */
354
    public function withTargetLanguage($value)
355
    {
356
        $this->data['TargetLanguage'] = $value;
357
        $this->options['form_params']['TargetLanguage'] = $value;
358
359
        return $this;
360
    }
361
}
362
363
/**
364
 * @method string getSourceLanguage()
365
 * @method string getSourceText()
366
 * @method string getFormatType()
367
 * @method string getScene()
368
 * @method string getTargetLanguage()
369
 */
370
class TranslateGeneral extends Rpc
371
{
372
373
    /**
374
     * @param string $value
375
     *
376
     * @return $this
377
     */
378
    public function withSourceLanguage($value)
379
    {
380
        $this->data['SourceLanguage'] = $value;
381
        $this->options['form_params']['SourceLanguage'] = $value;
382
383
        return $this;
384
    }
385
386
    /**
387
     * @param string $value
388
     *
389
     * @return $this
390
     */
391
    public function withSourceText($value)
392
    {
393
        $this->data['SourceText'] = $value;
394
        $this->options['form_params']['SourceText'] = $value;
395
396
        return $this;
397
    }
398
399
    /**
400
     * @param string $value
401
     *
402
     * @return $this
403
     */
404
    public function withFormatType($value)
405
    {
406
        $this->data['FormatType'] = $value;
407
        $this->options['form_params']['FormatType'] = $value;
408
409
        return $this;
410
    }
411
412
    /**
413
     * @param string $value
414
     *
415
     * @return $this
416
     */
417
    public function withScene($value)
418
    {
419
        $this->data['Scene'] = $value;
420
        $this->options['form_params']['Scene'] = $value;
421
422
        return $this;
423
    }
424
425
    /**
426
     * @param string $value
427
     *
428
     * @return $this
429
     */
430
    public function withTargetLanguage($value)
431
    {
432
        $this->data['TargetLanguage'] = $value;
433
        $this->options['form_params']['TargetLanguage'] = $value;
434
435
        return $this;
436
    }
437
}
438