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 ( 65e0c7...39222c )
by
unknown
08:00
created

GenerateSuperResolutionImage::withImageUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace AlibabaCloud\Imageenhan\V20190930;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method AssessComposition assessComposition(array $options = [])
9
 * @method AssessExposure assessExposure(array $options = [])
10
 * @method AssessSharpness assessSharpness(array $options = [])
11
 * @method ChangeImageSize changeImageSize(array $options = [])
12
 * @method ColorizeImage colorizeImage(array $options = [])
13
 * @method EnhanceImageColor enhanceImageColor(array $options = [])
14
 * @method ErasePerson erasePerson(array $options = [])
15
 * @method ExtendImageStyle extendImageStyle(array $options = [])
16
 * @method GenerateCartoonizedImage generateCartoonizedImage(array $options = [])
17
 * @method GenerateDynamicImage generateDynamicImage(array $options = [])
18
 * @method GenerateImageWithText generateImageWithText(array $options = [])
19
 * @method GenerateImageWithTextAndImage generateImageWithTextAndImage(array $options = [])
20
 * @method GenerateSuperResolutionImage generateSuperResolutionImage(array $options = [])
21
 * @method GetAsyncJobResult getAsyncJobResult(array $options = [])
22
 * @method ImageBlindCharacterWatermark imageBlindCharacterWatermark(array $options = [])
23
 * @method ImageBlindPicWatermark imageBlindPicWatermark(array $options = [])
24
 * @method ImitatePhotoStyle imitatePhotoStyle(array $options = [])
25
 * @method IntelligentComposition intelligentComposition(array $options = [])
26
 * @method MakeSuperResolutionImage makeSuperResolutionImage(array $options = [])
27
 * @method RecolorHDImage recolorHDImage(array $options = [])
28
 * @method RecolorImage recolorImage(array $options = [])
29
 * @method RemoveImageSubtitles removeImageSubtitles(array $options = [])
30
 * @method RemoveImageWatermark removeImageWatermark(array $options = [])
31
 */
32
class ImageenhanApiResolver extends ApiResolver
33
{
34
}
35
36
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
37
{
38
    /** @var string */
39
    public $product = 'imageenhan';
40
41
    /** @var string */
42
    public $version = '2019-09-30';
43
44
    /** @var string */
45
    public $method = 'POST';
46
47
    /** @var string */
48
    public $serviceCode = 'imageenhan';
49
}
50
51
/**
52
 * @method string getImageURL()
53
 */
54
class AssessComposition extends Rpc
55
{
56
57
    /**
58
     * @param string $value
59
     *
60
     * @return $this
61
     */
62
    public function withImageURL($value)
63
    {
64
        $this->data['ImageURL'] = $value;
65
        $this->options['form_params']['ImageURL'] = $value;
66
67
        return $this;
68
    }
69
}
70
71
/**
72
 * @method string getImageURL()
73
 */
74
class AssessExposure extends Rpc
75
{
76
77
    /**
78
     * @param string $value
79
     *
80
     * @return $this
81
     */
82
    public function withImageURL($value)
83
    {
84
        $this->data['ImageURL'] = $value;
85
        $this->options['form_params']['ImageURL'] = $value;
86
87
        return $this;
88
    }
89
}
90
91
/**
92
 * @method string getImageURL()
93
 */
94
class AssessSharpness extends Rpc
95
{
96
97
    /**
98
     * @param string $value
99
     *
100
     * @return $this
101
     */
102
    public function withImageURL($value)
103
    {
104
        $this->data['ImageURL'] = $value;
105
        $this->options['form_params']['ImageURL'] = $value;
106
107
        return $this;
108
    }
109
}
110
111
/**
112
 * @method string getHeight()
113
 * @method string getUrl()
114
 * @method string getWidth()
115
 */
116
class ChangeImageSize extends Rpc
117
{
118
119
    /**
120
     * @param string $value
121
     *
122
     * @return $this
123
     */
124
    public function withHeight($value)
125
    {
126
        $this->data['Height'] = $value;
127
        $this->options['form_params']['Height'] = $value;
128
129
        return $this;
130
    }
131
132
    /**
133
     * @param string $value
134
     *
135
     * @return $this
136
     */
137
    public function withUrl($value)
138
    {
139
        $this->data['Url'] = $value;
140
        $this->options['form_params']['Url'] = $value;
141
142
        return $this;
143
    }
144
145
    /**
146
     * @param string $value
147
     *
148
     * @return $this
149
     */
150
    public function withWidth($value)
151
    {
152
        $this->data['Width'] = $value;
153
        $this->options['form_params']['Width'] = $value;
154
155
        return $this;
156
    }
157
}
158
159
/**
160
 * @method string getImageURL()
161
 */
162
class ColorizeImage extends Rpc
163
{
164
165
    /**
166
     * @param string $value
167
     *
168
     * @return $this
169
     */
170
    public function withImageURL($value)
171
    {
172
        $this->data['ImageURL'] = $value;
173
        $this->options['form_params']['ImageURL'] = $value;
174
175
        return $this;
176
    }
177
}
178
179
/**
180
 * @method string getMode()
181
 * @method string getOutputFormat()
182
 * @method string getImageURL()
183
 */
184
class EnhanceImageColor extends Rpc
185
{
186
187
    /**
188
     * @param string $value
189
     *
190
     * @return $this
191
     */
192
    public function withMode($value)
193
    {
194
        $this->data['Mode'] = $value;
195
        $this->options['form_params']['Mode'] = $value;
196
197
        return $this;
198
    }
199
200
    /**
201
     * @param string $value
202
     *
203
     * @return $this
204
     */
205
    public function withOutputFormat($value)
206
    {
207
        $this->data['OutputFormat'] = $value;
208
        $this->options['form_params']['OutputFormat'] = $value;
209
210
        return $this;
211
    }
212
213
    /**
214
     * @param string $value
215
     *
216
     * @return $this
217
     */
218
    public function withImageURL($value)
219
    {
220
        $this->data['ImageURL'] = $value;
221
        $this->options['form_params']['ImageURL'] = $value;
222
223
        return $this;
224
    }
225
}
226
227
/**
228
 * @method string getUserMask()
229
 * @method string getImageURL()
230
 */
231
class ErasePerson extends Rpc
232
{
233
234
    /**
235
     * @param string $value
236
     *
237
     * @return $this
238
     */
239
    public function withUserMask($value)
240
    {
241
        $this->data['UserMask'] = $value;
242
        $this->options['form_params']['UserMask'] = $value;
243
244
        return $this;
245
    }
246
247
    /**
248
     * @param string $value
249
     *
250
     * @return $this
251
     */
252
    public function withImageURL($value)
253
    {
254
        $this->data['ImageURL'] = $value;
255
        $this->options['form_params']['ImageURL'] = $value;
256
257
        return $this;
258
    }
259
}
260
261
/**
262
 * @method string getMajorUrl()
263
 * @method string getStyleUrl()
264
 */
265
class ExtendImageStyle extends Rpc
266
{
267
268
    /**
269
     * @param string $value
270
     *
271
     * @return $this
272
     */
273
    public function withMajorUrl($value)
274
    {
275
        $this->data['MajorUrl'] = $value;
276
        $this->options['form_params']['MajorUrl'] = $value;
277
278
        return $this;
279
    }
280
281
    /**
282
     * @param string $value
283
     *
284
     * @return $this
285
     */
286
    public function withStyleUrl($value)
287
    {
288
        $this->data['StyleUrl'] = $value;
289
        $this->options['form_params']['StyleUrl'] = $value;
290
291
        return $this;
292
    }
293
}
294
295
/**
296
 * @method string getImageType()
297
 * @method string getIndex()
298
 * @method string getAsync()
299
 * @method string getImageUrl()
300
 */
301
class GenerateCartoonizedImage extends Rpc
302
{
303
304
    /**
305
     * @param string $value
306
     *
307
     * @return $this
308
     */
309
    public function withImageType($value)
310
    {
311
        $this->data['ImageType'] = $value;
312
        $this->options['form_params']['ImageType'] = $value;
313
314
        return $this;
315
    }
316
317
    /**
318
     * @param string $value
319
     *
320
     * @return $this
321
     */
322
    public function withIndex($value)
323
    {
324
        $this->data['Index'] = $value;
325
        $this->options['form_params']['Index'] = $value;
326
327
        return $this;
328
    }
329
330
    /**
331
     * @param string $value
332
     *
333
     * @return $this
334
     */
335
    public function withAsync($value)
336
    {
337
        $this->data['Async'] = $value;
338
        $this->options['form_params']['Async'] = $value;
339
340
        return $this;
341
    }
342
343
    /**
344
     * @param string $value
345
     *
346
     * @return $this
347
     */
348
    public function withImageUrl($value)
349
    {
350
        $this->data['ImageUrl'] = $value;
351
        $this->options['form_params']['ImageUrl'] = $value;
352
353
        return $this;
354
    }
355
}
356
357
/**
358
 * @method string getUrl()
359
 * @method string getOperation()
360
 */
361
class GenerateDynamicImage extends Rpc
362
{
363
364
    /**
365
     * @param string $value
366
     *
367
     * @return $this
368
     */
369
    public function withUrl($value)
370
    {
371
        $this->data['Url'] = $value;
372
        $this->options['form_params']['Url'] = $value;
373
374
        return $this;
375
    }
376
377
    /**
378
     * @param string $value
379
     *
380
     * @return $this
381
     */
382
    public function withOperation($value)
383
    {
384
        $this->data['Operation'] = $value;
385
        $this->options['form_params']['Operation'] = $value;
386
387
        return $this;
388
    }
389
}
390
391
/**
392
 * @method string getResolution()
393
 * @method string getNumber()
394
 * @method string getText()
395
 * @method string getAsync()
396
 */
397
class GenerateImageWithText extends Rpc
398
{
399
400
    /**
401
     * @param string $value
402
     *
403
     * @return $this
404
     */
405
    public function withResolution($value)
406
    {
407
        $this->data['Resolution'] = $value;
408
        $this->options['form_params']['Resolution'] = $value;
409
410
        return $this;
411
    }
412
413
    /**
414
     * @param string $value
415
     *
416
     * @return $this
417
     */
418
    public function withNumber($value)
419
    {
420
        $this->data['Number'] = $value;
421
        $this->options['form_params']['Number'] = $value;
422
423
        return $this;
424
    }
425
426
    /**
427
     * @param string $value
428
     *
429
     * @return $this
430
     */
431
    public function withText($value)
432
    {
433
        $this->data['Text'] = $value;
434
        $this->options['form_params']['Text'] = $value;
435
436
        return $this;
437
    }
438
439
    /**
440
     * @param string $value
441
     *
442
     * @return $this
443
     */
444
    public function withAsync($value)
445
    {
446
        $this->data['Async'] = $value;
447
        $this->options['form_params']['Async'] = $value;
448
449
        return $this;
450
    }
451
}
452
453
/**
454
 * @method string getResolution()
455
 * @method string getNumber()
456
 * @method string getSimilarity()
457
 * @method string getAspectRatioMode()
458
 * @method string getText()
459
 * @method string getRefImageUrl()
460
 * @method string getAsync()
461
 */
462
class GenerateImageWithTextAndImage extends Rpc
463
{
464
465
    /**
466
     * @param string $value
467
     *
468
     * @return $this
469
     */
470
    public function withResolution($value)
471
    {
472
        $this->data['Resolution'] = $value;
473
        $this->options['form_params']['Resolution'] = $value;
474
475
        return $this;
476
    }
477
478
    /**
479
     * @param string $value
480
     *
481
     * @return $this
482
     */
483
    public function withNumber($value)
484
    {
485
        $this->data['Number'] = $value;
486
        $this->options['form_params']['Number'] = $value;
487
488
        return $this;
489
    }
490
491
    /**
492
     * @param string $value
493
     *
494
     * @return $this
495
     */
496
    public function withSimilarity($value)
497
    {
498
        $this->data['Similarity'] = $value;
499
        $this->options['form_params']['Similarity'] = $value;
500
501
        return $this;
502
    }
503
504
    /**
505
     * @param string $value
506
     *
507
     * @return $this
508
     */
509
    public function withAspectRatioMode($value)
510
    {
511
        $this->data['AspectRatioMode'] = $value;
512
        $this->options['form_params']['AspectRatioMode'] = $value;
513
514
        return $this;
515
    }
516
517
    /**
518
     * @param string $value
519
     *
520
     * @return $this
521
     */
522
    public function withText($value)
523
    {
524
        $this->data['Text'] = $value;
525
        $this->options['form_params']['Text'] = $value;
526
527
        return $this;
528
    }
529
530
    /**
531
     * @param string $value
532
     *
533
     * @return $this
534
     */
535
    public function withRefImageUrl($value)
536
    {
537
        $this->data['RefImageUrl'] = $value;
538
        $this->options['form_params']['RefImageUrl'] = $value;
539
540
        return $this;
541
    }
542
543
    /**
544
     * @param string $value
545
     *
546
     * @return $this
547
     */
548
    public function withAsync($value)
549
    {
550
        $this->data['Async'] = $value;
551
        $this->options['form_params']['Async'] = $value;
552
553
        return $this;
554
    }
555
}
556
557
/**
558
 * @method string getScale()
559
 * @method string getUserData()
560
 * @method string getOutputFormat()
561
 * @method string getAsync()
562
 * @method string getImageUrl()
563
 * @method string getOutputQuality()
564
 */
565
class GenerateSuperResolutionImage extends Rpc
566
{
567
568
    /**
569
     * @param string $value
570
     *
571
     * @return $this
572
     */
573
    public function withScale($value)
574
    {
575
        $this->data['Scale'] = $value;
576
        $this->options['form_params']['Scale'] = $value;
577
578
        return $this;
579
    }
580
581
    /**
582
     * @param string $value
583
     *
584
     * @return $this
585
     */
586
    public function withUserData($value)
587
    {
588
        $this->data['UserData'] = $value;
589
        $this->options['form_params']['UserData'] = $value;
590
591
        return $this;
592
    }
593
594
    /**
595
     * @param string $value
596
     *
597
     * @return $this
598
     */
599
    public function withOutputFormat($value)
600
    {
601
        $this->data['OutputFormat'] = $value;
602
        $this->options['form_params']['OutputFormat'] = $value;
603
604
        return $this;
605
    }
606
607
    /**
608
     * @param string $value
609
     *
610
     * @return $this
611
     */
612
    public function withAsync($value)
613
    {
614
        $this->data['Async'] = $value;
615
        $this->options['form_params']['Async'] = $value;
616
617
        return $this;
618
    }
619
620
    /**
621
     * @param string $value
622
     *
623
     * @return $this
624
     */
625
    public function withImageUrl($value)
626
    {
627
        $this->data['ImageUrl'] = $value;
628
        $this->options['form_params']['ImageUrl'] = $value;
629
630
        return $this;
631
    }
632
633
    /**
634
     * @param string $value
635
     *
636
     * @return $this
637
     */
638
    public function withOutputQuality($value)
639
    {
640
        $this->data['OutputQuality'] = $value;
641
        $this->options['form_params']['OutputQuality'] = $value;
642
643
        return $this;
644
    }
645
}
646
647
/**
648
 * @method string getJobId()
649
 * @method string getAsync()
650
 */
651
class GetAsyncJobResult extends Rpc
652
{
653
654
    /**
655
     * @param string $value
656
     *
657
     * @return $this
658
     */
659
    public function withJobId($value)
660
    {
661
        $this->data['JobId'] = $value;
662
        $this->options['form_params']['JobId'] = $value;
663
664
        return $this;
665
    }
666
667
    /**
668
     * @param string $value
669
     *
670
     * @return $this
671
     */
672
    public function withAsync($value)
673
    {
674
        $this->data['Async'] = $value;
675
        $this->options['form_params']['Async'] = $value;
676
677
        return $this;
678
    }
679
}
680
681
/**
682
 * @method string getWatermarkImageURL()
683
 * @method string getOutputFileType()
684
 * @method string getText()
685
 * @method string getQualityFactor()
686
 * @method string getFunctionType()
687
 * @method string getOriginImageURL()
688
 */
689
class ImageBlindCharacterWatermark extends Rpc
690
{
691
692
    /**
693
     * @param string $value
694
     *
695
     * @return $this
696
     */
697
    public function withWatermarkImageURL($value)
698
    {
699
        $this->data['WatermarkImageURL'] = $value;
700
        $this->options['form_params']['WatermarkImageURL'] = $value;
701
702
        return $this;
703
    }
704
705
    /**
706
     * @param string $value
707
     *
708
     * @return $this
709
     */
710
    public function withOutputFileType($value)
711
    {
712
        $this->data['OutputFileType'] = $value;
713
        $this->options['form_params']['OutputFileType'] = $value;
714
715
        return $this;
716
    }
717
718
    /**
719
     * @param string $value
720
     *
721
     * @return $this
722
     */
723
    public function withText($value)
724
    {
725
        $this->data['Text'] = $value;
726
        $this->options['form_params']['Text'] = $value;
727
728
        return $this;
729
    }
730
731
    /**
732
     * @param string $value
733
     *
734
     * @return $this
735
     */
736
    public function withQualityFactor($value)
737
    {
738
        $this->data['QualityFactor'] = $value;
739
        $this->options['form_params']['QualityFactor'] = $value;
740
741
        return $this;
742
    }
743
744
    /**
745
     * @param string $value
746
     *
747
     * @return $this
748
     */
749
    public function withFunctionType($value)
750
    {
751
        $this->data['FunctionType'] = $value;
752
        $this->options['form_params']['FunctionType'] = $value;
753
754
        return $this;
755
    }
756
757
    /**
758
     * @param string $value
759
     *
760
     * @return $this
761
     */
762
    public function withOriginImageURL($value)
763
    {
764
        $this->data['OriginImageURL'] = $value;
765
        $this->options['form_params']['OriginImageURL'] = $value;
766
767
        return $this;
768
    }
769
}
770
771
/**
772
 * @method string getWatermarkImageURL()
773
 * @method string getLogoURL()
774
 * @method string getOutputFileType()
775
 * @method string getQualityFactor()
776
 * @method string getFunctionType()
777
 * @method string getOriginImageURL()
778
 */
779
class ImageBlindPicWatermark extends Rpc
780
{
781
782
    /**
783
     * @param string $value
784
     *
785
     * @return $this
786
     */
787
    public function withWatermarkImageURL($value)
788
    {
789
        $this->data['WatermarkImageURL'] = $value;
790
        $this->options['form_params']['WatermarkImageURL'] = $value;
791
792
        return $this;
793
    }
794
795
    /**
796
     * @param string $value
797
     *
798
     * @return $this
799
     */
800
    public function withLogoURL($value)
801
    {
802
        $this->data['LogoURL'] = $value;
803
        $this->options['form_params']['LogoURL'] = $value;
804
805
        return $this;
806
    }
807
808
    /**
809
     * @param string $value
810
     *
811
     * @return $this
812
     */
813
    public function withOutputFileType($value)
814
    {
815
        $this->data['OutputFileType'] = $value;
816
        $this->options['form_params']['OutputFileType'] = $value;
817
818
        return $this;
819
    }
820
821
    /**
822
     * @param string $value
823
     *
824
     * @return $this
825
     */
826
    public function withQualityFactor($value)
827
    {
828
        $this->data['QualityFactor'] = $value;
829
        $this->options['form_params']['QualityFactor'] = $value;
830
831
        return $this;
832
    }
833
834
    /**
835
     * @param string $value
836
     *
837
     * @return $this
838
     */
839
    public function withFunctionType($value)
840
    {
841
        $this->data['FunctionType'] = $value;
842
        $this->options['form_params']['FunctionType'] = $value;
843
844
        return $this;
845
    }
846
847
    /**
848
     * @param string $value
849
     *
850
     * @return $this
851
     */
852
    public function withOriginImageURL($value)
853
    {
854
        $this->data['OriginImageURL'] = $value;
855
        $this->options['form_params']['OriginImageURL'] = $value;
856
857
        return $this;
858
    }
859
}
860
861
/**
862
 * @method string getStyleUrl()
863
 * @method string getImageURL()
864
 */
865
class ImitatePhotoStyle extends Rpc
866
{
867
868
    /**
869
     * @param string $value
870
     *
871
     * @return $this
872
     */
873
    public function withStyleUrl($value)
874
    {
875
        $this->data['StyleUrl'] = $value;
876
        $this->options['form_params']['StyleUrl'] = $value;
877
878
        return $this;
879
    }
880
881
    /**
882
     * @param string $value
883
     *
884
     * @return $this
885
     */
886
    public function withImageURL($value)
887
    {
888
        $this->data['ImageURL'] = $value;
889
        $this->options['form_params']['ImageURL'] = $value;
890
891
        return $this;
892
    }
893
}
894
895
/**
896
 * @method string getNumBoxes()
897
 * @method string getImageURL()
898
 */
899
class IntelligentComposition extends Rpc
900
{
901
902
    /**
903
     * @param string $value
904
     *
905
     * @return $this
906
     */
907
    public function withNumBoxes($value)
908
    {
909
        $this->data['NumBoxes'] = $value;
910
        $this->options['form_params']['NumBoxes'] = $value;
911
912
        return $this;
913
    }
914
915
    /**
916
     * @param string $value
917
     *
918
     * @return $this
919
     */
920
    public function withImageURL($value)
921
    {
922
        $this->data['ImageURL'] = $value;
923
        $this->options['form_params']['ImageURL'] = $value;
924
925
        return $this;
926
    }
927
}
928
929
/**
930
 * @method string getUpscaleFactor()
931
 * @method string getMode()
932
 * @method string getOutputFormat()
933
 * @method string getUrl()
934
 * @method string getOutputQuality()
935
 */
936
class MakeSuperResolutionImage extends Rpc
937
{
938
939
    /**
940
     * @param string $value
941
     *
942
     * @return $this
943
     */
944
    public function withUpscaleFactor($value)
945
    {
946
        $this->data['UpscaleFactor'] = $value;
947
        $this->options['form_params']['UpscaleFactor'] = $value;
948
949
        return $this;
950
    }
951
952
    /**
953
     * @param string $value
954
     *
955
     * @return $this
956
     */
957
    public function withMode($value)
958
    {
959
        $this->data['Mode'] = $value;
960
        $this->options['form_params']['Mode'] = $value;
961
962
        return $this;
963
    }
964
965
    /**
966
     * @param string $value
967
     *
968
     * @return $this
969
     */
970
    public function withOutputFormat($value)
971
    {
972
        $this->data['OutputFormat'] = $value;
973
        $this->options['form_params']['OutputFormat'] = $value;
974
975
        return $this;
976
    }
977
978
    /**
979
     * @param string $value
980
     *
981
     * @return $this
982
     */
983
    public function withUrl($value)
984
    {
985
        $this->data['Url'] = $value;
986
        $this->options['form_params']['Url'] = $value;
987
988
        return $this;
989
    }
990
991
    /**
992
     * @param string $value
993
     *
994
     * @return $this
995
     */
996
    public function withOutputQuality($value)
997
    {
998
        $this->data['OutputQuality'] = $value;
999
        $this->options['form_params']['OutputQuality'] = $value;
1000
1001
        return $this;
1002
    }
1003
}
1004
1005
/**
1006
 * @method string getMode()
1007
 * @method string getColorCount()
1008
 * @method array getColorTemplate()
1009
 * @method string getDegree()
1010
 * @method string getUrl()
1011
 * @method string getAsync()
1012
 * @method string getRefUrl()
1013
 */
1014
class RecolorHDImage extends Rpc
1015
{
1016
1017
    /**
1018
     * @param string $value
1019
     *
1020
     * @return $this
1021
     */
1022
    public function withMode($value)
1023
    {
1024
        $this->data['Mode'] = $value;
1025
        $this->options['form_params']['Mode'] = $value;
1026
1027
        return $this;
1028
    }
1029
1030
    /**
1031
     * @param string $value
1032
     *
1033
     * @return $this
1034
     */
1035
    public function withColorCount($value)
1036
    {
1037
        $this->data['ColorCount'] = $value;
1038
        $this->options['form_params']['ColorCount'] = $value;
1039
1040
        return $this;
1041
    }
1042
1043
    /**
1044
     * @param array $colorTemplate
1045
     *
1046
     * @return $this
1047
     */
1048
	public function withColorTemplate(array $colorTemplate)
1049
	{
1050
	    $this->data['ColorTemplate'] = $colorTemplate;
1051
		foreach ($colorTemplate as $depth1 => $depth1Value) {
1052
			if(isset($depth1Value['Color'])){
1053
				$this->options['form_params']['ColorTemplate.' . ($depth1 + 1) . '.Color'] = $depth1Value['Color'];
1054
			}
1055
		}
1056
1057
		return $this;
1058
    }
1059
1060
    /**
1061
     * @param string $value
1062
     *
1063
     * @return $this
1064
     */
1065
    public function withDegree($value)
1066
    {
1067
        $this->data['Degree'] = $value;
1068
        $this->options['form_params']['Degree'] = $value;
1069
1070
        return $this;
1071
    }
1072
1073
    /**
1074
     * @param string $value
1075
     *
1076
     * @return $this
1077
     */
1078
    public function withUrl($value)
1079
    {
1080
        $this->data['Url'] = $value;
1081
        $this->options['form_params']['Url'] = $value;
1082
1083
        return $this;
1084
    }
1085
1086
    /**
1087
     * @param string $value
1088
     *
1089
     * @return $this
1090
     */
1091
    public function withAsync($value)
1092
    {
1093
        $this->data['Async'] = $value;
1094
        $this->options['form_params']['Async'] = $value;
1095
1096
        return $this;
1097
    }
1098
1099
    /**
1100
     * @param string $value
1101
     *
1102
     * @return $this
1103
     */
1104
    public function withRefUrl($value)
1105
    {
1106
        $this->data['RefUrl'] = $value;
1107
        $this->options['form_params']['RefUrl'] = $value;
1108
1109
        return $this;
1110
    }
1111
}
1112
1113
/**
1114
 * @method string getMode()
1115
 * @method string getColorCount()
1116
 * @method array getColorTemplate()
1117
 * @method string getUrl()
1118
 * @method string getRefUrl()
1119
 */
1120
class RecolorImage extends Rpc
1121
{
1122
1123
    /**
1124
     * @param string $value
1125
     *
1126
     * @return $this
1127
     */
1128
    public function withMode($value)
1129
    {
1130
        $this->data['Mode'] = $value;
1131
        $this->options['form_params']['Mode'] = $value;
1132
1133
        return $this;
1134
    }
1135
1136
    /**
1137
     * @param string $value
1138
     *
1139
     * @return $this
1140
     */
1141
    public function withColorCount($value)
1142
    {
1143
        $this->data['ColorCount'] = $value;
1144
        $this->options['form_params']['ColorCount'] = $value;
1145
1146
        return $this;
1147
    }
1148
1149
    /**
1150
     * @param array $colorTemplate
1151
     *
1152
     * @return $this
1153
     */
1154
	public function withColorTemplate(array $colorTemplate)
1155
	{
1156
	    $this->data['ColorTemplate'] = $colorTemplate;
1157
		foreach ($colorTemplate as $depth1 => $depth1Value) {
1158
			if(isset($depth1Value['Color'])){
1159
				$this->options['form_params']['ColorTemplate.' . ($depth1 + 1) . '.Color'] = $depth1Value['Color'];
1160
			}
1161
		}
1162
1163
		return $this;
1164
    }
1165
1166
    /**
1167
     * @param string $value
1168
     *
1169
     * @return $this
1170
     */
1171
    public function withUrl($value)
1172
    {
1173
        $this->data['Url'] = $value;
1174
        $this->options['form_params']['Url'] = $value;
1175
1176
        return $this;
1177
    }
1178
1179
    /**
1180
     * @param string $value
1181
     *
1182
     * @return $this
1183
     */
1184
    public function withRefUrl($value)
1185
    {
1186
        $this->data['RefUrl'] = $value;
1187
        $this->options['form_params']['RefUrl'] = $value;
1188
1189
        return $this;
1190
    }
1191
}
1192
1193
/**
1194
 * @method string getBH()
1195
 * @method string getBW()
1196
 * @method string getBX()
1197
 * @method string getBY()
1198
 * @method string getImageURL()
1199
 */
1200
class RemoveImageSubtitles extends Rpc
1201
{
1202
1203
    /**
1204
     * @param string $value
1205
     *
1206
     * @return $this
1207
     */
1208
    public function withBH($value)
1209
    {
1210
        $this->data['BH'] = $value;
1211
        $this->options['form_params']['BH'] = $value;
1212
1213
        return $this;
1214
    }
1215
1216
    /**
1217
     * @param string $value
1218
     *
1219
     * @return $this
1220
     */
1221
    public function withBW($value)
1222
    {
1223
        $this->data['BW'] = $value;
1224
        $this->options['form_params']['BW'] = $value;
1225
1226
        return $this;
1227
    }
1228
1229
    /**
1230
     * @param string $value
1231
     *
1232
     * @return $this
1233
     */
1234
    public function withBX($value)
1235
    {
1236
        $this->data['BX'] = $value;
1237
        $this->options['form_params']['BX'] = $value;
1238
1239
        return $this;
1240
    }
1241
1242
    /**
1243
     * @param string $value
1244
     *
1245
     * @return $this
1246
     */
1247
    public function withBY($value)
1248
    {
1249
        $this->data['BY'] = $value;
1250
        $this->options['form_params']['BY'] = $value;
1251
1252
        return $this;
1253
    }
1254
1255
    /**
1256
     * @param string $value
1257
     *
1258
     * @return $this
1259
     */
1260
    public function withImageURL($value)
1261
    {
1262
        $this->data['ImageURL'] = $value;
1263
        $this->options['form_params']['ImageURL'] = $value;
1264
1265
        return $this;
1266
    }
1267
}
1268
1269
/**
1270
 * @method string getImageURL()
1271
 */
1272
class RemoveImageWatermark extends Rpc
1273
{
1274
1275
    /**
1276
     * @param string $value
1277
     *
1278
     * @return $this
1279
     */
1280
    public function withImageURL($value)
1281
    {
1282
        $this->data['ImageURL'] = $value;
1283
        $this->options['form_params']['ImageURL'] = $value;
1284
1285
        return $this;
1286
    }
1287
}
1288