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 ( 5b44da...df360a )
by
unknown
04:12
created

GetDetectLanguage::withSourceText()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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