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 ( 759cf2...52a88f )
by
unknown
12:13
created

GetImageTranslate::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
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 GetDetectLanguage getDetectLanguage(array $options = [])
10
 * @method GetDocTranslateTask getDocTranslateTask(array $options = [])
11
 * @method GetImageDiagnose getImageDiagnose(array $options = [])
12
 * @method GetImageTranslate getImageTranslate(array $options = [])
13
 * @method GetTitleDiagnose getTitleDiagnose(array $options = [])
14
 * @method GetTitleGenerate getTitleGenerate(array $options = [])
15
 * @method Translate translate(array $options = [])
16
 * @method TranslateCertificate translateCertificate(array $options = [])
17
 * @method TranslateECommerce translateECommerce(array $options = [])
18
 * @method TranslateGeneral translateGeneral(array $options = [])
19
 */
20
class AlimtApiResolver extends ApiResolver
21
{
22
}
23
24
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
25
{
26
    /** @var string */
27
    public $product = 'alimt';
28
29
    /** @var string */
30
    public $version = '2018-10-12';
31
32
    /** @var string */
33
    public $method = 'POST';
34
}
35
36
/**
37
 * @method string getSourceLanguage()
38
 * @method string getClientToken()
39
 * @method string getScene()
40
 * @method string getFileUrl()
41
 * @method string getTargetLanguage()
42
 * @method string getCallbackUrl()
43
 */
44
class CreateDocTranslateTask extends Rpc
45
{
46
47
    /**
48
     * @param string $value
49
     *
50
     * @return $this
51
     */
52
    public function withSourceLanguage($value)
53
    {
54
        $this->data['SourceLanguage'] = $value;
55
        $this->options['form_params']['SourceLanguage'] = $value;
56
57
        return $this;
58
    }
59
60
    /**
61
     * @param string $value
62
     *
63
     * @return $this
64
     */
65
    public function withClientToken($value)
66
    {
67
        $this->data['ClientToken'] = $value;
68
        $this->options['form_params']['ClientToken'] = $value;
69
70
        return $this;
71
    }
72
73
    /**
74
     * @param string $value
75
     *
76
     * @return $this
77
     */
78
    public function withScene($value)
79
    {
80
        $this->data['Scene'] = $value;
81
        $this->options['form_params']['Scene'] = $value;
82
83
        return $this;
84
    }
85
86
    /**
87
     * @param string $value
88
     *
89
     * @return $this
90
     */
91
    public function withFileUrl($value)
92
    {
93
        $this->data['FileUrl'] = $value;
94
        $this->options['form_params']['FileUrl'] = $value;
95
96
        return $this;
97
    }
98
99
    /**
100
     * @param string $value
101
     *
102
     * @return $this
103
     */
104
    public function withTargetLanguage($value)
105
    {
106
        $this->data['TargetLanguage'] = $value;
107
        $this->options['form_params']['TargetLanguage'] = $value;
108
109
        return $this;
110
    }
111
112
    /**
113
     * @param string $value
114
     *
115
     * @return $this
116
     */
117
    public function withCallbackUrl($value)
118
    {
119
        $this->data['CallbackUrl'] = $value;
120
        $this->options['form_params']['CallbackUrl'] = $value;
121 1
122
        return $this;
123 1
    }
124 1
}
125
126 1
/**
127
 * @method string getSourceText()
128
 */
129
class GetDetectLanguage extends Rpc
130
{
131
132
    /**
133
     * @param string $value
134 1
     *
135
     * @return $this
136 1
     */
137 1
    public function withSourceText($value)
138
    {
139 1
        $this->data['SourceText'] = $value;
140
        $this->options['form_params']['SourceText'] = $value;
141
142
        return $this;
143
    }
144
}
145
146
/**
147 1
 * @method string getTaskId()
148
 * @method $this withTaskId($value)
149 1
 */
150 1
class GetDocTranslateTask extends Rpc
151
{
152 1
153
    /** @var string */
154
    public $method = 'GET';
155
}
156
157
/**
158
 * @method string getUrl()
159
 * @method string getExtra()
160 1
 */
161
class GetImageDiagnose extends Rpc
162 1
{
163 1
164
    /**
165 1
     * @param string $value
166
     *
167
     * @return $this
168
     */
169
    public function withUrl($value)
170
    {
171
        $this->data['Url'] = $value;
172
        $this->options['form_params']['Url'] = $value;
173 1
174
        return $this;
175 1
    }
176 1
177
    /**
178 1
     * @param string $value
179
     *
180
     * @return $this
181
     */
182
    public function withExtra($value)
183
    {
184
        $this->data['Extra'] = $value;
185
        $this->options['form_params']['Extra'] = $value;
186
187
        return $this;
188
    }
189
}
190
191
/**
192
 * @method string getSourceLanguage()
193
 * @method string getUrl()
194
 * @method string getExtra()
195
 * @method string getTargetLanguage()
196
 */
197
class GetImageTranslate extends Rpc
198
{
199
200
    /**
201
     * @param string $value
202
     *
203
     * @return $this
204
     */
205
    public function withSourceLanguage($value)
206
    {
207
        $this->data['SourceLanguage'] = $value;
208
        $this->options['form_params']['SourceLanguage'] = $value;
209
210
        return $this;
211
    }
212
213
    /**
214
     * @param string $value
215
     *
216
     * @return $this
217
     */
218
    public function withUrl($value)
219
    {
220
        $this->data['Url'] = $value;
221
        $this->options['form_params']['Url'] = $value;
222
223
        return $this;
224
    }
225
226
    /**
227
     * @param string $value
228
     *
229
     * @return $this
230
     */
231
    public function withExtra($value)
232
    {
233
        $this->data['Extra'] = $value;
234
        $this->options['form_params']['Extra'] = $value;
235
236
        return $this;
237
    }
238
239
    /**
240
     * @param string $value
241
     *
242
     * @return $this
243
     */
244
    public function withTargetLanguage($value)
245
    {
246
        $this->data['TargetLanguage'] = $value;
247
        $this->options['form_params']['TargetLanguage'] = $value;
248
249
        return $this;
250
    }
251
}
252
253
/**
254
 * @method string getLanguage()
255
 * @method string getTitle()
256
 * @method string getPlatform()
257
 * @method string getExtra()
258
 * @method string getCategoryId()
259
 */
260
class GetTitleDiagnose extends Rpc
261
{
262
263
    /**
264
     * @param string $value
265
     *
266
     * @return $this
267
     */
268
    public function withLanguage($value)
269
    {
270
        $this->data['Language'] = $value;
271
        $this->options['form_params']['Language'] = $value;
272
273
        return $this;
274
    }
275
276
    /**
277
     * @param string $value
278
     *
279
     * @return $this
280
     */
281
    public function withTitle($value)
282
    {
283
        $this->data['Title'] = $value;
284
        $this->options['form_params']['Title'] = $value;
285
286
        return $this;
287
    }
288
289
    /**
290
     * @param string $value
291
     *
292
     * @return $this
293
     */
294
    public function withPlatform($value)
295
    {
296
        $this->data['Platform'] = $value;
297
        $this->options['form_params']['Platform'] = $value;
298
299
        return $this;
300
    }
301
302
    /**
303
     * @param string $value
304
     *
305
     * @return $this
306
     */
307
    public function withExtra($value)
308
    {
309
        $this->data['Extra'] = $value;
310
        $this->options['form_params']['Extra'] = $value;
311
312
        return $this;
313
    }
314
315
    /**
316
     * @param string $value
317
     *
318
     * @return $this
319
     */
320
    public function withCategoryId($value)
321
    {
322
        $this->data['CategoryId'] = $value;
323
        $this->options['form_params']['CategoryId'] = $value;
324
325
        return $this;
326
    }
327
}
328
329
/**
330
 * @method string getLanguage()
331
 * @method string getTitle()
332
 * @method string getPlatform()
333
 * @method string getExtra()
334
 * @method string getAttributes()
335
 * @method string getHotWords()
336
 * @method string getCategoryId()
337
 */
338
class GetTitleGenerate extends Rpc
339
{
340
341
    /**
342
     * @param string $value
343
     *
344
     * @return $this
345
     */
346
    public function withLanguage($value)
347
    {
348
        $this->data['Language'] = $value;
349
        $this->options['form_params']['Language'] = $value;
350
351
        return $this;
352
    }
353
354
    /**
355
     * @param string $value
356
     *
357
     * @return $this
358
     */
359
    public function withTitle($value)
360
    {
361
        $this->data['Title'] = $value;
362
        $this->options['form_params']['Title'] = $value;
363
364
        return $this;
365
    }
366
367
    /**
368
     * @param string $value
369
     *
370
     * @return $this
371
     */
372
    public function withPlatform($value)
373
    {
374
        $this->data['Platform'] = $value;
375
        $this->options['form_params']['Platform'] = $value;
376
377
        return $this;
378
    }
379
380
    /**
381
     * @param string $value
382
     *
383
     * @return $this
384
     */
385
    public function withExtra($value)
386
    {
387
        $this->data['Extra'] = $value;
388
        $this->options['form_params']['Extra'] = $value;
389
390
        return $this;
391
    }
392
393
    /**
394
     * @param string $value
395
     *
396
     * @return $this
397
     */
398
    public function withAttributes($value)
399
    {
400
        $this->data['Attributes'] = $value;
401
        $this->options['form_params']['Attributes'] = $value;
402
403
        return $this;
404
    }
405
406
    /**
407
     * @param string $value
408
     *
409
     * @return $this
410
     */
411
    public function withHotWords($value)
412
    {
413
        $this->data['HotWords'] = $value;
414
        $this->options['form_params']['HotWords'] = $value;
415
416
        return $this;
417
    }
418
419
    /**
420
     * @param string $value
421
     *
422
     * @return $this
423
     */
424
    public function withCategoryId($value)
425
    {
426
        $this->data['CategoryId'] = $value;
427
        $this->options['form_params']['CategoryId'] = $value;
428
429
        return $this;
430
    }
431
}
432
433
/**
434
 * @method string getSourceLanguage()
435
 * @method string getSourceText()
436
 * @method string getFormatType()
437
 * @method string getScene()
438
 * @method string getTargetLanguage()
439
 */
440
class Translate extends Rpc
441
{
442
443
    /**
444
     * @param string $value
445
     *
446
     * @return $this
447
     */
448
    public function withSourceLanguage($value)
449
    {
450
        $this->data['SourceLanguage'] = $value;
451
        $this->options['form_params']['SourceLanguage'] = $value;
452
453
        return $this;
454
    }
455
456
    /**
457
     * @param string $value
458
     *
459
     * @return $this
460
     */
461
    public function withSourceText($value)
462
    {
463
        $this->data['SourceText'] = $value;
464
        $this->options['form_params']['SourceText'] = $value;
465
466
        return $this;
467
    }
468
469
    /**
470
     * @param string $value
471
     *
472
     * @return $this
473
     */
474
    public function withFormatType($value)
475
    {
476
        $this->data['FormatType'] = $value;
477
        $this->options['form_params']['FormatType'] = $value;
478
479
        return $this;
480
    }
481
482
    /**
483
     * @param string $value
484
     *
485
     * @return $this
486
     */
487
    public function withScene($value)
488
    {
489
        $this->data['Scene'] = $value;
490
        $this->options['form_params']['Scene'] = $value;
491
492
        return $this;
493
    }
494
495
    /**
496
     * @param string $value
497
     *
498
     * @return $this
499
     */
500
    public function withTargetLanguage($value)
501
    {
502
        $this->data['TargetLanguage'] = $value;
503
        $this->options['form_params']['TargetLanguage'] = $value;
504
505
        return $this;
506
    }
507
}
508
509
/**
510
 * @method string getSourceLanguage()
511
 * @method string getCertificateType()
512
 * @method string getResultType()
513
 * @method string getImageUrl()
514
 * @method string getTargetLanguage()
515
 */
516
class TranslateCertificate extends Rpc
517
{
518
519
    /**
520
     * @param string $value
521
     *
522
     * @return $this
523
     */
524
    public function withSourceLanguage($value)
525
    {
526
        $this->data['SourceLanguage'] = $value;
527
        $this->options['form_params']['SourceLanguage'] = $value;
528
529
        return $this;
530
    }
531
532
    /**
533
     * @param string $value
534
     *
535
     * @return $this
536
     */
537
    public function withCertificateType($value)
538
    {
539
        $this->data['CertificateType'] = $value;
540
        $this->options['form_params']['CertificateType'] = $value;
541
542
        return $this;
543
    }
544
545
    /**
546
     * @param string $value
547
     *
548
     * @return $this
549
     */
550
    public function withResultType($value)
551
    {
552
        $this->data['ResultType'] = $value;
553
        $this->options['form_params']['ResultType'] = $value;
554
555
        return $this;
556
    }
557
558
    /**
559
     * @param string $value
560
     *
561
     * @return $this
562
     */
563
    public function withImageUrl($value)
564
    {
565
        $this->data['ImageUrl'] = $value;
566
        $this->options['form_params']['ImageUrl'] = $value;
567
568
        return $this;
569
    }
570
571
    /**
572
     * @param string $value
573
     *
574
     * @return $this
575
     */
576
    public function withTargetLanguage($value)
577
    {
578
        $this->data['TargetLanguage'] = $value;
579
        $this->options['form_params']['TargetLanguage'] = $value;
580
581
        return $this;
582
    }
583
}
584
585
/**
586
 * @method string getSourceLanguage()
587
 * @method string getSourceText()
588
 * @method string getFormatType()
589
 * @method string getScene()
590
 * @method string getTargetLanguage()
591
 */
592
class TranslateECommerce extends Rpc
593
{
594
595
    /**
596
     * @param string $value
597
     *
598
     * @return $this
599
     */
600
    public function withSourceLanguage($value)
601
    {
602
        $this->data['SourceLanguage'] = $value;
603
        $this->options['form_params']['SourceLanguage'] = $value;
604
605
        return $this;
606
    }
607
608
    /**
609
     * @param string $value
610
     *
611
     * @return $this
612
     */
613
    public function withSourceText($value)
614
    {
615
        $this->data['SourceText'] = $value;
616
        $this->options['form_params']['SourceText'] = $value;
617
618
        return $this;
619
    }
620
621
    /**
622
     * @param string $value
623
     *
624
     * @return $this
625
     */
626
    public function withFormatType($value)
627
    {
628
        $this->data['FormatType'] = $value;
629
        $this->options['form_params']['FormatType'] = $value;
630
631
        return $this;
632
    }
633
634
    /**
635
     * @param string $value
636
     *
637
     * @return $this
638
     */
639
    public function withScene($value)
640
    {
641
        $this->data['Scene'] = $value;
642
        $this->options['form_params']['Scene'] = $value;
643
644
        return $this;
645
    }
646
647
    /**
648
     * @param string $value
649
     *
650
     * @return $this
651
     */
652
    public function withTargetLanguage($value)
653
    {
654
        $this->data['TargetLanguage'] = $value;
655
        $this->options['form_params']['TargetLanguage'] = $value;
656
657
        return $this;
658
    }
659
}
660
661
/**
662
 * @method string getSourceLanguage()
663
 * @method string getSourceText()
664
 * @method string getFormatType()
665
 * @method string getScene()
666
 * @method string getTargetLanguage()
667
 */
668
class TranslateGeneral extends Rpc
669
{
670
671
    /**
672
     * @param string $value
673
     *
674
     * @return $this
675
     */
676
    public function withSourceLanguage($value)
677
    {
678
        $this->data['SourceLanguage'] = $value;
679
        $this->options['form_params']['SourceLanguage'] = $value;
680
681
        return $this;
682
    }
683
684
    /**
685
     * @param string $value
686
     *
687
     * @return $this
688
     */
689
    public function withSourceText($value)
690
    {
691
        $this->data['SourceText'] = $value;
692
        $this->options['form_params']['SourceText'] = $value;
693
694
        return $this;
695
    }
696
697
    /**
698
     * @param string $value
699
     *
700
     * @return $this
701
     */
702
    public function withFormatType($value)
703
    {
704
        $this->data['FormatType'] = $value;
705
        $this->options['form_params']['FormatType'] = $value;
706
707
        return $this;
708
    }
709
710
    /**
711
     * @param string $value
712
     *
713
     * @return $this
714
     */
715
    public function withScene($value)
716
    {
717
        $this->data['Scene'] = $value;
718
        $this->options['form_params']['Scene'] = $value;
719
720
        return $this;
721
    }
722
723
    /**
724
     * @param string $value
725
     *
726
     * @return $this
727
     */
728
    public function withTargetLanguage($value)
729
    {
730
        $this->data['TargetLanguage'] = $value;
731
        $this->options['form_params']['TargetLanguage'] = $value;
732
733
        return $this;
734
    }
735
}
736