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 ( c1a22c...ba4479 )
by
unknown
06:38
created

GetImageTranslateTask   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 14
ccs 0
cts 0
cp 0
rs 10
c 0
b 0
f 0

1 Method

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