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.
Passed
Push — master ( d25b44...50403f )
by
unknown
06:34
created

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