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 ( b6165b...fb7d45 )
by
unknown
07:44
created

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