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 ( 86bbf0...9f9ca3 )
by
unknown
07:10
created

MakeSuperResolutionImage::withUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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