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 ( 2d0996...d1263c )
by
unknown
07:00
created

TranslateCertificate::withImageUrl()   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 CreateImageTranslateTask createImageTranslateTask(array $options = [])
10
 * @method GetBatchTranslate getBatchTranslate(array $options = [])
11
 * @method GetDetectLanguage getDetectLanguage(array $options = [])
12
 * @method GetDocTranslateTask getDocTranslateTask(array $options = [])
13
 * @method GetImageDiagnose getImageDiagnose(array $options = [])
14
 * @method GetImageTranslate getImageTranslate(array $options = [])
15
 * @method GetImageTranslateTask getImageTranslateTask(array $options = [])
16
 * @method GetTitleDiagnose getTitleDiagnose(array $options = [])
17
 * @method GetTitleGenerate getTitleGenerate(array $options = [])
18
 * @method GetTitleIntelligence getTitleIntelligence(array $options = [])
19
 * @method GetTranslateReport getTranslateReport(array $options = [])
20
 * @method GetUser getUser(array $options = [])
21
 * @method OpenAlimtService openAlimtService(array $options = [])
22
 * @method Translate translate(array $options = [])
23
 * @method TranslateCertificate translateCertificate(array $options = [])
24
 * @method TranslateECommerce translateECommerce(array $options = [])
25
 * @method TranslateGeneral translateGeneral(array $options = [])
26
 * @method TranslateImage translateImage(array $options = [])
27
 */
28
class AlimtApiResolver extends ApiResolver
29
{
30
}
31
32
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
33
{
34
    /** @var string */
35
    public $product = 'alimt';
36
37
    /** @var string */
38
    public $version = '2018-10-12';
39
40
    /** @var string */
41
    public $method = 'POST';
42
}
43
44
/**
45
 * @method string getSourceLanguage()
46
 * @method string getClientToken()
47
 * @method string getScene()
48
 * @method string getFileUrl()
49
 * @method string getTargetLanguage()
50
 * @method string getCallbackUrl()
51
 */
52
class CreateDocTranslateTask extends Rpc
53
{
54
55
    /**
56
     * @param string $value
57
     *
58
     * @return $this
59
     */
60
    public function withSourceLanguage($value)
61
    {
62
        $this->data['SourceLanguage'] = $value;
63
        $this->options['form_params']['SourceLanguage'] = $value;
64
65
        return $this;
66
    }
67
68
    /**
69
     * @param string $value
70
     *
71
     * @return $this
72
     */
73
    public function withClientToken($value)
74
    {
75
        $this->data['ClientToken'] = $value;
76
        $this->options['form_params']['ClientToken'] = $value;
77
78
        return $this;
79
    }
80
81
    /**
82
     * @param string $value
83
     *
84
     * @return $this
85
     */
86
    public function withScene($value)
87
    {
88
        $this->data['Scene'] = $value;
89
        $this->options['form_params']['Scene'] = $value;
90
91
        return $this;
92
    }
93
94
    /**
95
     * @param string $value
96
     *
97
     * @return $this
98
     */
99
    public function withFileUrl($value)
100
    {
101
        $this->data['FileUrl'] = $value;
102
        $this->options['form_params']['FileUrl'] = $value;
103
104
        return $this;
105
    }
106
107
    /**
108
     * @param string $value
109
     *
110
     * @return $this
111
     */
112
    public function withTargetLanguage($value)
113
    {
114
        $this->data['TargetLanguage'] = $value;
115
        $this->options['form_params']['TargetLanguage'] = $value;
116
117
        return $this;
118
    }
119
120
    /**
121 1
     * @param string $value
122
     *
123 1
     * @return $this
124 1
     */
125
    public function withCallbackUrl($value)
126 1
    {
127
        $this->data['CallbackUrl'] = $value;
128
        $this->options['form_params']['CallbackUrl'] = $value;
129
130
        return $this;
131
    }
132
}
133
134 1
/**
135
 * @method string getSourceLanguage()
136 1
 * @method string getClientToken()
137 1
 * @method string getUrlList()
138
 * @method string getExtra()
139 1
 * @method string getTargetLanguage()
140
 */
141
class CreateImageTranslateTask extends Rpc
142
{
143
144
    /**
145
     * @param string $value
146
     *
147 1
     * @return $this
148
     */
149 1
    public function withSourceLanguage($value)
150 1
    {
151
        $this->data['SourceLanguage'] = $value;
152 1
        $this->options['form_params']['SourceLanguage'] = $value;
153
154
        return $this;
155
    }
156
157
    /**
158
     * @param string $value
159
     *
160 1
     * @return $this
161
     */
162 1
    public function withClientToken($value)
163 1
    {
164
        $this->data['ClientToken'] = $value;
165 1
        $this->options['form_params']['ClientToken'] = $value;
166
167
        return $this;
168
    }
169
170
    /**
171
     * @param string $value
172
     *
173 1
     * @return $this
174
     */
175 1
    public function withUrlList($value)
176 1
    {
177
        $this->data['UrlList'] = $value;
178 1
        $this->options['form_params']['UrlList'] = $value;
179
180
        return $this;
181
    }
182
183
    /**
184
     * @param string $value
185
     *
186
     * @return $this
187
     */
188
    public function withExtra($value)
189
    {
190
        $this->data['Extra'] = $value;
191
        $this->options['form_params']['Extra'] = $value;
192
193
        return $this;
194
    }
195
196
    /**
197
     * @param string $value
198
     *
199
     * @return $this
200
     */
201
    public function withTargetLanguage($value)
202
    {
203
        $this->data['TargetLanguage'] = $value;
204
        $this->options['form_params']['TargetLanguage'] = $value;
205
206
        return $this;
207
    }
208
}
209
210
/**
211
 * @method string getSourceLanguage()
212
 * @method string getSourceText()
213
 * @method string getFormatType()
214
 * @method string getApiType()
215
 * @method string getScene()
216
 * @method string getTargetLanguage()
217
 */
218
class GetBatchTranslate 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 withSourceText($value)
240
    {
241
        $this->data['SourceText'] = $value;
242
        $this->options['form_params']['SourceText'] = $value;
243
244
        return $this;
245
    }
246
247
    /**
248
     * @param string $value
249
     *
250
     * @return $this
251
     */
252
    public function withFormatType($value)
253
    {
254
        $this->data['FormatType'] = $value;
255
        $this->options['form_params']['FormatType'] = $value;
256
257
        return $this;
258
    }
259
260
    /**
261
     * @param string $value
262
     *
263
     * @return $this
264
     */
265
    public function withApiType($value)
266
    {
267
        $this->data['ApiType'] = $value;
268
        $this->options['form_params']['ApiType'] = $value;
269
270
        return $this;
271
    }
272
273
    /**
274
     * @param string $value
275
     *
276
     * @return $this
277
     */
278
    public function withScene($value)
279
    {
280
        $this->data['Scene'] = $value;
281
        $this->options['form_params']['Scene'] = $value;
282
283
        return $this;
284
    }
285
286
    /**
287
     * @param string $value
288
     *
289
     * @return $this
290
     */
291
    public function withTargetLanguage($value)
292
    {
293
        $this->data['TargetLanguage'] = $value;
294
        $this->options['form_params']['TargetLanguage'] = $value;
295
296
        return $this;
297
    }
298
}
299
300
/**
301
 * @method string getSourceText()
302
 */
303
class GetDetectLanguage extends Rpc
304
{
305
306
    /**
307
     * @param string $value
308
     *
309
     * @return $this
310
     */
311
    public function withSourceText($value)
312
    {
313
        $this->data['SourceText'] = $value;
314
        $this->options['form_params']['SourceText'] = $value;
315
316
        return $this;
317
    }
318
}
319
320
/**
321
 * @method string getTaskId()
322
 * @method $this withTaskId($value)
323
 */
324
class GetDocTranslateTask extends Rpc
325
{
326
327
    /** @var string */
328
    public $method = 'GET';
329
}
330
331
/**
332
 * @method string getUrl()
333
 * @method string getExtra()
334
 */
335
class GetImageDiagnose extends Rpc
336
{
337
338
    /**
339
     * @param string $value
340
     *
341
     * @return $this
342
     */
343
    public function withUrl($value)
344
    {
345
        $this->data['Url'] = $value;
346
        $this->options['form_params']['Url'] = $value;
347
348
        return $this;
349
    }
350
351
    /**
352
     * @param string $value
353
     *
354
     * @return $this
355
     */
356
    public function withExtra($value)
357
    {
358
        $this->data['Extra'] = $value;
359
        $this->options['form_params']['Extra'] = $value;
360
361
        return $this;
362
    }
363
}
364
365
/**
366
 * @method string getSourceLanguage()
367
 * @method string getUrl()
368
 * @method string getExtra()
369
 * @method string getTargetLanguage()
370
 */
371
class GetImageTranslate extends Rpc
372
{
373
374
    /**
375
     * @param string $value
376
     *
377
     * @return $this
378
     */
379
    public function withSourceLanguage($value)
380
    {
381
        $this->data['SourceLanguage'] = $value;
382
        $this->options['form_params']['SourceLanguage'] = $value;
383
384
        return $this;
385
    }
386
387
    /**
388
     * @param string $value
389
     *
390
     * @return $this
391
     */
392
    public function withUrl($value)
393
    {
394
        $this->data['Url'] = $value;
395
        $this->options['form_params']['Url'] = $value;
396
397
        return $this;
398
    }
399
400
    /**
401
     * @param string $value
402
     *
403
     * @return $this
404
     */
405
    public function withExtra($value)
406
    {
407
        $this->data['Extra'] = $value;
408
        $this->options['form_params']['Extra'] = $value;
409
410
        return $this;
411
    }
412
413
    /**
414
     * @param string $value
415
     *
416
     * @return $this
417
     */
418
    public function withTargetLanguage($value)
419
    {
420
        $this->data['TargetLanguage'] = $value;
421
        $this->options['form_params']['TargetLanguage'] = $value;
422
423
        return $this;
424
    }
425
}
426
427
/**
428
 * @method string getTaskId()
429
 */
430
class GetImageTranslateTask extends Rpc
431
{
432
433
    /**
434
     * @param string $value
435
     *
436
     * @return $this
437
     */
438
    public function withTaskId($value)
439
    {
440
        $this->data['TaskId'] = $value;
441
        $this->options['form_params']['TaskId'] = $value;
442
443
        return $this;
444
    }
445
}
446
447
/**
448
 * @method string getLanguage()
449
 * @method string getTitle()
450
 * @method string getPlatform()
451
 * @method string getExtra()
452
 * @method string getCategoryId()
453
 */
454
class GetTitleDiagnose extends Rpc
455
{
456
457
    /**
458
     * @param string $value
459
     *
460
     * @return $this
461
     */
462
    public function withLanguage($value)
463
    {
464
        $this->data['Language'] = $value;
465
        $this->options['form_params']['Language'] = $value;
466
467
        return $this;
468
    }
469
470
    /**
471
     * @param string $value
472
     *
473
     * @return $this
474
     */
475
    public function withTitle($value)
476
    {
477
        $this->data['Title'] = $value;
478
        $this->options['form_params']['Title'] = $value;
479
480
        return $this;
481
    }
482
483
    /**
484
     * @param string $value
485
     *
486
     * @return $this
487
     */
488
    public function withPlatform($value)
489
    {
490
        $this->data['Platform'] = $value;
491
        $this->options['form_params']['Platform'] = $value;
492
493
        return $this;
494
    }
495
496
    /**
497
     * @param string $value
498
     *
499
     * @return $this
500
     */
501
    public function withExtra($value)
502
    {
503
        $this->data['Extra'] = $value;
504
        $this->options['form_params']['Extra'] = $value;
505
506
        return $this;
507
    }
508
509
    /**
510
     * @param string $value
511
     *
512
     * @return $this
513
     */
514
    public function withCategoryId($value)
515
    {
516
        $this->data['CategoryId'] = $value;
517
        $this->options['form_params']['CategoryId'] = $value;
518
519
        return $this;
520
    }
521
}
522
523
/**
524
 * @method string getLanguage()
525
 * @method string getTitle()
526
 * @method string getPlatform()
527
 * @method string getExtra()
528
 * @method string getAttributes()
529
 * @method string getHotWords()
530
 * @method string getCategoryId()
531
 */
532
class GetTitleGenerate extends Rpc
533
{
534
535
    /**
536
     * @param string $value
537
     *
538
     * @return $this
539
     */
540
    public function withLanguage($value)
541
    {
542
        $this->data['Language'] = $value;
543
        $this->options['form_params']['Language'] = $value;
544
545
        return $this;
546
    }
547
548
    /**
549
     * @param string $value
550
     *
551
     * @return $this
552
     */
553
    public function withTitle($value)
554
    {
555
        $this->data['Title'] = $value;
556
        $this->options['form_params']['Title'] = $value;
557
558
        return $this;
559
    }
560
561
    /**
562
     * @param string $value
563
     *
564
     * @return $this
565
     */
566
    public function withPlatform($value)
567
    {
568
        $this->data['Platform'] = $value;
569
        $this->options['form_params']['Platform'] = $value;
570
571
        return $this;
572
    }
573
574
    /**
575
     * @param string $value
576
     *
577
     * @return $this
578
     */
579
    public function withExtra($value)
580
    {
581
        $this->data['Extra'] = $value;
582
        $this->options['form_params']['Extra'] = $value;
583
584
        return $this;
585
    }
586
587
    /**
588
     * @param string $value
589
     *
590
     * @return $this
591
     */
592
    public function withAttributes($value)
593
    {
594
        $this->data['Attributes'] = $value;
595
        $this->options['form_params']['Attributes'] = $value;
596
597
        return $this;
598
    }
599
600
    /**
601
     * @param string $value
602
     *
603
     * @return $this
604
     */
605
    public function withHotWords($value)
606
    {
607
        $this->data['HotWords'] = $value;
608
        $this->options['form_params']['HotWords'] = $value;
609
610
        return $this;
611
    }
612
613
    /**
614
     * @param string $value
615
     *
616
     * @return $this
617
     */
618
    public function withCategoryId($value)
619
    {
620
        $this->data['CategoryId'] = $value;
621
        $this->options['form_params']['CategoryId'] = $value;
622
623
        return $this;
624
    }
625
}
626
627
/**
628
 * @method string getCatLevelThreeId()
629
 * @method string getCatLevelTwoId()
630
 * @method string getKeywords()
631
 * @method string getPlatform()
632
 * @method string getExtra()
633
 */
634
class GetTitleIntelligence extends Rpc
635
{
636
637
    /**
638
     * @param string $value
639
     *
640
     * @return $this
641
     */
642
    public function withCatLevelThreeId($value)
643
    {
644
        $this->data['CatLevelThreeId'] = $value;
645
        $this->options['form_params']['CatLevelThreeId'] = $value;
646
647
        return $this;
648
    }
649
650
    /**
651
     * @param string $value
652
     *
653
     * @return $this
654
     */
655
    public function withCatLevelTwoId($value)
656
    {
657
        $this->data['CatLevelTwoId'] = $value;
658
        $this->options['form_params']['CatLevelTwoId'] = $value;
659
660
        return $this;
661
    }
662
663
    /**
664
     * @param string $value
665
     *
666
     * @return $this
667
     */
668
    public function withKeywords($value)
669
    {
670
        $this->data['Keywords'] = $value;
671
        $this->options['form_params']['Keywords'] = $value;
672
673
        return $this;
674
    }
675
676
    /**
677
     * @param string $value
678
     *
679
     * @return $this
680
     */
681
    public function withPlatform($value)
682
    {
683
        $this->data['Platform'] = $value;
684
        $this->options['form_params']['Platform'] = $value;
685
686
        return $this;
687
    }
688
689
    /**
690
     * @param string $value
691
     *
692
     * @return $this
693
     */
694
    public function withExtra($value)
695
    {
696
        $this->data['Extra'] = $value;
697
        $this->options['form_params']['Extra'] = $value;
698
699
        return $this;
700
    }
701
}
702
703
/**
704
 * @method string getEndTime()
705
 * @method $this withEndTime($value)
706
 * @method string getBeginTime()
707
 * @method $this withBeginTime($value)
708
 * @method string getApiName()
709
 * @method $this withApiName($value)
710
 * @method string getGroup()
711
 * @method $this withGroup($value)
712
 */
713
class GetTranslateReport extends Rpc
714
{
715
}
716
717
class GetUser extends Rpc
718
{
719
}
720
721
/**
722
 * @method string getOwnerId()
723
 * @method $this withOwnerId($value)
724
 * @method string getType()
725
 * @method $this withType($value)
726
 */
727
class OpenAlimtService extends Rpc
728
{
729
}
730
731
/**
732
 * @method string getSourceLanguage()
733
 * @method string getSourceText()
734
 * @method string getFormatType()
735
 * @method string getScene()
736
 * @method string getTargetLanguage()
737
 */
738
class Translate extends Rpc
739
{
740
741
    /**
742
     * @param string $value
743
     *
744
     * @return $this
745
     */
746
    public function withSourceLanguage($value)
747
    {
748
        $this->data['SourceLanguage'] = $value;
749
        $this->options['form_params']['SourceLanguage'] = $value;
750
751
        return $this;
752
    }
753
754
    /**
755
     * @param string $value
756
     *
757
     * @return $this
758
     */
759
    public function withSourceText($value)
760
    {
761
        $this->data['SourceText'] = $value;
762
        $this->options['form_params']['SourceText'] = $value;
763
764
        return $this;
765
    }
766
767
    /**
768
     * @param string $value
769
     *
770
     * @return $this
771
     */
772
    public function withFormatType($value)
773
    {
774
        $this->data['FormatType'] = $value;
775
        $this->options['form_params']['FormatType'] = $value;
776
777
        return $this;
778
    }
779
780
    /**
781
     * @param string $value
782
     *
783
     * @return $this
784
     */
785
    public function withScene($value)
786
    {
787
        $this->data['Scene'] = $value;
788
        $this->options['form_params']['Scene'] = $value;
789
790
        return $this;
791
    }
792
793
    /**
794
     * @param string $value
795
     *
796
     * @return $this
797
     */
798
    public function withTargetLanguage($value)
799
    {
800
        $this->data['TargetLanguage'] = $value;
801
        $this->options['form_params']['TargetLanguage'] = $value;
802
803
        return $this;
804
    }
805
}
806
807
/**
808
 * @method string getExt()
809
 * @method string getSourceLanguage()
810
 * @method string getCertificateType()
811
 * @method string getResultType()
812
 * @method string getImageUrl()
813
 * @method string getTargetLanguage()
814
 */
815
class TranslateCertificate extends Rpc
816
{
817
818
    /**
819
     * @param string $value
820
     *
821
     * @return $this
822
     */
823
    public function withExt($value)
824
    {
825
        $this->data['Ext'] = $value;
826
        $this->options['form_params']['Ext'] = $value;
827
828
        return $this;
829
    }
830
831
    /**
832
     * @param string $value
833
     *
834
     * @return $this
835
     */
836
    public function withSourceLanguage($value)
837
    {
838
        $this->data['SourceLanguage'] = $value;
839
        $this->options['form_params']['SourceLanguage'] = $value;
840
841
        return $this;
842
    }
843
844
    /**
845
     * @param string $value
846
     *
847
     * @return $this
848
     */
849
    public function withCertificateType($value)
850
    {
851
        $this->data['CertificateType'] = $value;
852
        $this->options['form_params']['CertificateType'] = $value;
853
854
        return $this;
855
    }
856
857
    /**
858
     * @param string $value
859
     *
860
     * @return $this
861
     */
862
    public function withResultType($value)
863
    {
864
        $this->data['ResultType'] = $value;
865
        $this->options['form_params']['ResultType'] = $value;
866
867
        return $this;
868
    }
869
870
    /**
871
     * @param string $value
872
     *
873
     * @return $this
874
     */
875
    public function withImageUrl($value)
876
    {
877
        $this->data['ImageUrl'] = $value;
878
        $this->options['form_params']['ImageUrl'] = $value;
879
880
        return $this;
881
    }
882
883
    /**
884
     * @param string $value
885
     *
886
     * @return $this
887
     */
888
    public function withTargetLanguage($value)
889
    {
890
        $this->data['TargetLanguage'] = $value;
891
        $this->options['form_params']['TargetLanguage'] = $value;
892
893
        return $this;
894
    }
895
}
896
897
/**
898
 * @method string getSourceLanguage()
899
 * @method string getSourceText()
900
 * @method string getFormatType()
901
 * @method string getScene()
902
 * @method string getTargetLanguage()
903
 */
904
class TranslateECommerce extends Rpc
905
{
906
907
    /**
908
     * @param string $value
909
     *
910
     * @return $this
911
     */
912
    public function withSourceLanguage($value)
913
    {
914
        $this->data['SourceLanguage'] = $value;
915
        $this->options['form_params']['SourceLanguage'] = $value;
916
917
        return $this;
918
    }
919
920
    /**
921
     * @param string $value
922
     *
923
     * @return $this
924
     */
925
    public function withSourceText($value)
926
    {
927
        $this->data['SourceText'] = $value;
928
        $this->options['form_params']['SourceText'] = $value;
929
930
        return $this;
931
    }
932
933
    /**
934
     * @param string $value
935
     *
936
     * @return $this
937
     */
938
    public function withFormatType($value)
939
    {
940
        $this->data['FormatType'] = $value;
941
        $this->options['form_params']['FormatType'] = $value;
942
943
        return $this;
944
    }
945
946
    /**
947
     * @param string $value
948
     *
949
     * @return $this
950
     */
951
    public function withScene($value)
952
    {
953
        $this->data['Scene'] = $value;
954
        $this->options['form_params']['Scene'] = $value;
955
956
        return $this;
957
    }
958
959
    /**
960
     * @param string $value
961
     *
962
     * @return $this
963
     */
964
    public function withTargetLanguage($value)
965
    {
966
        $this->data['TargetLanguage'] = $value;
967
        $this->options['form_params']['TargetLanguage'] = $value;
968
969
        return $this;
970
    }
971
}
972
973
/**
974
 * @method string getSourceLanguage()
975
 * @method string getSourceText()
976
 * @method string getFormatType()
977
 * @method string getScene()
978
 * @method string getTargetLanguage()
979
 */
980
class TranslateGeneral extends Rpc
981
{
982
983
    /**
984
     * @param string $value
985
     *
986
     * @return $this
987
     */
988
    public function withSourceLanguage($value)
989
    {
990
        $this->data['SourceLanguage'] = $value;
991
        $this->options['form_params']['SourceLanguage'] = $value;
992
993
        return $this;
994
    }
995
996
    /**
997
     * @param string $value
998
     *
999
     * @return $this
1000
     */
1001
    public function withSourceText($value)
1002
    {
1003
        $this->data['SourceText'] = $value;
1004
        $this->options['form_params']['SourceText'] = $value;
1005
1006
        return $this;
1007
    }
1008
1009
    /**
1010
     * @param string $value
1011
     *
1012
     * @return $this
1013
     */
1014
    public function withFormatType($value)
1015
    {
1016
        $this->data['FormatType'] = $value;
1017
        $this->options['form_params']['FormatType'] = $value;
1018
1019
        return $this;
1020
    }
1021
1022
    /**
1023
     * @param string $value
1024
     *
1025
     * @return $this
1026
     */
1027
    public function withScene($value)
1028
    {
1029
        $this->data['Scene'] = $value;
1030
        $this->options['form_params']['Scene'] = $value;
1031
1032
        return $this;
1033
    }
1034
1035
    /**
1036
     * @param string $value
1037
     *
1038
     * @return $this
1039
     */
1040
    public function withTargetLanguage($value)
1041
    {
1042
        $this->data['TargetLanguage'] = $value;
1043
        $this->options['form_params']['TargetLanguage'] = $value;
1044
1045
        return $this;
1046
    }
1047
}
1048
1049
/**
1050
 * @method string getExt()
1051
 * @method string getSourceLanguage()
1052
 * @method string getField()
1053
 * @method string getImageUrl()
1054
 * @method string getTargetLanguage()
1055
 * @method string getImageBase64()
1056
 */
1057
class TranslateImage extends Rpc
1058
{
1059
1060
    /**
1061
     * @param string $value
1062
     *
1063
     * @return $this
1064
     */
1065
    public function withExt($value)
1066
    {
1067
        $this->data['Ext'] = $value;
1068
        $this->options['form_params']['Ext'] = $value;
1069
1070
        return $this;
1071
    }
1072
1073
    /**
1074
     * @param string $value
1075
     *
1076
     * @return $this
1077
     */
1078
    public function withSourceLanguage($value)
1079
    {
1080
        $this->data['SourceLanguage'] = $value;
1081
        $this->options['form_params']['SourceLanguage'] = $value;
1082
1083
        return $this;
1084
    }
1085
1086
    /**
1087
     * @param string $value
1088
     *
1089
     * @return $this
1090
     */
1091
    public function withField($value)
1092
    {
1093
        $this->data['Field'] = $value;
1094
        $this->options['form_params']['Field'] = $value;
1095
1096
        return $this;
1097
    }
1098
1099
    /**
1100
     * @param string $value
1101
     *
1102
     * @return $this
1103
     */
1104
    public function withImageUrl($value)
1105
    {
1106
        $this->data['ImageUrl'] = $value;
1107
        $this->options['form_params']['ImageUrl'] = $value;
1108
1109
        return $this;
1110
    }
1111
1112
    /**
1113
     * @param string $value
1114
     *
1115
     * @return $this
1116
     */
1117
    public function withTargetLanguage($value)
1118
    {
1119
        $this->data['TargetLanguage'] = $value;
1120
        $this->options['form_params']['TargetLanguage'] = $value;
1121
1122
        return $this;
1123
    }
1124
1125
    /**
1126
     * @param string $value
1127
     *
1128
     * @return $this
1129
     */
1130
    public function withImageBase64($value)
1131
    {
1132
        $this->data['ImageBase64'] = $value;
1133
        $this->options['form_params']['ImageBase64'] = $value;
1134
1135
        return $this;
1136
    }
1137
}
1138