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 ( e66fa2...97785b )
by
unknown
07:00
created

MakeSuperResolutionImage::withUpscaleFactor()   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 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 getUrl()
109
 * @method string getWidth()
110
 * @method string getHeight()
111
 */
112
class ChangeImageSize extends Rpc
113
{
114
115
    /**
116
     * @param string $value
117
     *
118
     * @return $this
119
     */
120
    public function withUrl($value)
121
    {
122
        $this->data['Url'] = $value;
123
        $this->options['form_params']['Url'] = $value;
124
125
        return $this;
126
    }
127
128
    /**
129
     * @param string $value
130
     *
131
     * @return $this
132
     */
133
    public function withWidth($value)
134
    {
135
        $this->data['Width'] = $value;
136
        $this->options['form_params']['Width'] = $value;
137
138
        return $this;
139
    }
140
141
    /**
142
     * @param string $value
143
     *
144
     * @return $this
145
     */
146
    public function withHeight($value)
147
    {
148
        $this->data['Height'] = $value;
149
        $this->options['form_params']['Height'] = $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 getImageURL()
178
 * @method string getOutputFormat()
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 withImageURL($value)
202
    {
203
        $this->data['ImageURL'] = $value;
204
        $this->options['form_params']['ImageURL'] = $value;
205
206
        return $this;
207
    }
208
209
    /**
210
     * @param string $value
211
     *
212
     * @return $this
213
     */
214
    public function withOutputFormat($value)
215
    {
216
        $this->data['OutputFormat'] = $value;
217
        $this->options['form_params']['OutputFormat'] = $value;
218
219
        return $this;
220
    }
221
}
222
223
/**
224
 * @method string getImageURL()
225
 * @method string getUserMask()
226
 */
227
class ErasePerson extends Rpc
228
{
229
230
    /**
231
     * @param string $value
232
     *
233
     * @return $this
234
     */
235
    public function withImageURL($value)
236
    {
237
        $this->data['ImageURL'] = $value;
238
        $this->options['form_params']['ImageURL'] = $value;
239
240
        return $this;
241
    }
242
243
    /**
244
     * @param string $value
245
     *
246
     * @return $this
247
     */
248
    public function withUserMask($value)
249
    {
250
        $this->data['UserMask'] = $value;
251
        $this->options['form_params']['UserMask'] = $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 getAsync()
327
 * @method string getJobId()
328
 */
329
class GetAsyncJobResult extends Rpc
330
{
331
332
    /**
333
     * @param string $value
334
     *
335
     * @return $this
336
     */
337
    public function withAsync($value)
338
    {
339
        $this->data['Async'] = $value;
340
        $this->options['form_params']['Async'] = $value;
341
342
        return $this;
343
    }
344
345
    /**
346
     * @param string $value
347
     *
348
     * @return $this
349
     */
350
    public function withJobId($value)
351
    {
352
        $this->data['JobId'] = $value;
353
        $this->options['form_params']['JobId'] = $value;
354
355
        return $this;
356
    }
357
}
358
359
/**
360
 * @method string getWatermarkImageURL()
361
 * @method string getQualityFactor()
362
 * @method string getFunctionType()
363
 * @method string getOutputFileType()
364
 * @method string getOriginImageURL()
365
 * @method string getText()
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 withQualityFactor($value)
389
    {
390
        $this->data['QualityFactor'] = $value;
391
        $this->options['form_params']['QualityFactor'] = $value;
392
393
        return $this;
394
    }
395
396
    /**
397
     * @param string $value
398
     *
399
     * @return $this
400
     */
401
    public function withFunctionType($value)
402
    {
403
        $this->data['FunctionType'] = $value;
404
        $this->options['form_params']['FunctionType'] = $value;
405
406
        return $this;
407
    }
408
409
    /**
410
     * @param string $value
411
     *
412
     * @return $this
413
     */
414
    public function withOutputFileType($value)
415
    {
416
        $this->data['OutputFileType'] = $value;
417
        $this->options['form_params']['OutputFileType'] = $value;
418
419
        return $this;
420
    }
421
422
    /**
423
     * @param string $value
424
     *
425
     * @return $this
426
     */
427
    public function withOriginImageURL($value)
428
    {
429
        $this->data['OriginImageURL'] = $value;
430
        $this->options['form_params']['OriginImageURL'] = $value;
431
432
        return $this;
433
    }
434
435
    /**
436
     * @param string $value
437
     *
438
     * @return $this
439
     */
440
    public function withText($value)
441
    {
442
        $this->data['Text'] = $value;
443
        $this->options['form_params']['Text'] = $value;
444
445
        return $this;
446
    }
447
}
448
449
/**
450
 * @method string getWatermarkImageURL()
451
 * @method string getQualityFactor()
452
 * @method string getFunctionType()
453
 * @method string getLogoURL()
454
 * @method string getOutputFileType()
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 withQualityFactor($value)
479
    {
480
        $this->data['QualityFactor'] = $value;
481
        $this->options['form_params']['QualityFactor'] = $value;
482
483
        return $this;
484
    }
485
486
    /**
487
     * @param string $value
488
     *
489
     * @return $this
490
     */
491
    public function withFunctionType($value)
492
    {
493
        $this->data['FunctionType'] = $value;
494
        $this->options['form_params']['FunctionType'] = $value;
495
496
        return $this;
497
    }
498
499
    /**
500
     * @param string $value
501
     *
502
     * @return $this
503
     */
504
    public function withLogoURL($value)
505
    {
506
        $this->data['LogoURL'] = $value;
507
        $this->options['form_params']['LogoURL'] = $value;
508
509
        return $this;
510
    }
511
512
    /**
513
     * @param string $value
514
     *
515
     * @return $this
516
     */
517
    public function withOutputFileType($value)
518
    {
519
        $this->data['OutputFileType'] = $value;
520
        $this->options['form_params']['OutputFileType'] = $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 getUrl()
611
 */
612
class MakeSuperResolutionImage extends Rpc
613
{
614
615
    /**
616
     * @param string $value
617
     *
618
     * @return $this
619
     */
620
    public function withUpscaleFactor($value)
621
    {
622
        $this->data['UpscaleFactor'] = $value;
623
        $this->options['form_params']['UpscaleFactor'] = $value;
624
625
        return $this;
626
    }
627
628
    /**
629
     * @param string $value
630
     *
631
     * @return $this
632
     */
633
    public function withMode($value)
634
    {
635
        $this->data['Mode'] = $value;
636
        $this->options['form_params']['Mode'] = $value;
637
638
        return $this;
639
    }
640
641
    /**
642
     * @param string $value
643
     *
644
     * @return $this
645
     */
646
    public function withUrl($value)
647
    {
648
        $this->data['Url'] = $value;
649
        $this->options['form_params']['Url'] = $value;
650
651
        return $this;
652
    }
653
}
654
655
/**
656
 * @method array getColorTemplate()
657
 * @method string getDegree()
658
 * @method string getUrl()
659
 * @method string getMode()
660
 * @method string getAsync()
661
 * @method string getColorCount()
662
 * @method string getRefUrl()
663
 */
664
class RecolorHDImage extends Rpc
665
{
666
667
    /**
668
     * @param array $colorTemplate
669
     *
670
     * @return $this
671
     */
672
	public function withColorTemplate(array $colorTemplate)
673
	{
674
	    $this->data['ColorTemplate'] = $colorTemplate;
675
		foreach ($colorTemplate as $depth1 => $depth1Value) {
676
			if(isset($depth1Value['Color'])){
677
				$this->options['form_params']['ColorTemplate.' . ($depth1 + 1) . '.Color'] = $depth1Value['Color'];
678
			}
679
		}
680
681
		return $this;
682
    }
683
684
    /**
685
     * @param string $value
686
     *
687
     * @return $this
688
     */
689
    public function withDegree($value)
690
    {
691
        $this->data['Degree'] = $value;
692
        $this->options['form_params']['Degree'] = $value;
693
694
        return $this;
695
    }
696
697
    /**
698
     * @param string $value
699
     *
700
     * @return $this
701
     */
702
    public function withUrl($value)
703
    {
704
        $this->data['Url'] = $value;
705
        $this->options['form_params']['Url'] = $value;
706
707
        return $this;
708
    }
709
710
    /**
711
     * @param string $value
712
     *
713
     * @return $this
714
     */
715
    public function withMode($value)
716
    {
717
        $this->data['Mode'] = $value;
718
        $this->options['form_params']['Mode'] = $value;
719
720
        return $this;
721
    }
722
723
    /**
724
     * @param string $value
725
     *
726
     * @return $this
727
     */
728
    public function withAsync($value)
729
    {
730
        $this->data['Async'] = $value;
731
        $this->options['form_params']['Async'] = $value;
732
733
        return $this;
734
    }
735
736
    /**
737
     * @param string $value
738
     *
739
     * @return $this
740
     */
741
    public function withColorCount($value)
742
    {
743
        $this->data['ColorCount'] = $value;
744
        $this->options['form_params']['ColorCount'] = $value;
745
746
        return $this;
747
    }
748
749
    /**
750
     * @param string $value
751
     *
752
     * @return $this
753
     */
754
    public function withRefUrl($value)
755
    {
756
        $this->data['RefUrl'] = $value;
757
        $this->options['form_params']['RefUrl'] = $value;
758
759
        return $this;
760
    }
761
}
762
763
/**
764
 * @method array getColorTemplate()
765
 * @method string getUrl()
766
 * @method string getMode()
767
 * @method string getColorCount()
768
 * @method string getRefUrl()
769
 */
770
class RecolorImage extends Rpc
771
{
772
773
    /**
774
     * @param array $colorTemplate
775
     *
776
     * @return $this
777
     */
778
	public function withColorTemplate(array $colorTemplate)
779
	{
780
	    $this->data['ColorTemplate'] = $colorTemplate;
781
		foreach ($colorTemplate as $depth1 => $depth1Value) {
782
			if(isset($depth1Value['Color'])){
783
				$this->options['form_params']['ColorTemplate.' . ($depth1 + 1) . '.Color'] = $depth1Value['Color'];
784
			}
785
		}
786
787
		return $this;
788
    }
789
790
    /**
791
     * @param string $value
792
     *
793
     * @return $this
794
     */
795
    public function withUrl($value)
796
    {
797
        $this->data['Url'] = $value;
798
        $this->options['form_params']['Url'] = $value;
799
800
        return $this;
801
    }
802
803
    /**
804
     * @param string $value
805
     *
806
     * @return $this
807
     */
808
    public function withMode($value)
809
    {
810
        $this->data['Mode'] = $value;
811
        $this->options['form_params']['Mode'] = $value;
812
813
        return $this;
814
    }
815
816
    /**
817
     * @param string $value
818
     *
819
     * @return $this
820
     */
821
    public function withColorCount($value)
822
    {
823
        $this->data['ColorCount'] = $value;
824
        $this->options['form_params']['ColorCount'] = $value;
825
826
        return $this;
827
    }
828
829
    /**
830
     * @param string $value
831
     *
832
     * @return $this
833
     */
834
    public function withRefUrl($value)
835
    {
836
        $this->data['RefUrl'] = $value;
837
        $this->options['form_params']['RefUrl'] = $value;
838
839
        return $this;
840
    }
841
}
842
843
/**
844
 * @method string getBH()
845
 * @method string getBW()
846
 * @method string getBX()
847
 * @method string getImageURL()
848
 * @method string getBY()
849
 */
850
class RemoveImageSubtitles extends Rpc
851
{
852
853
    /**
854
     * @param string $value
855
     *
856
     * @return $this
857
     */
858
    public function withBH($value)
859
    {
860
        $this->data['BH'] = $value;
861
        $this->options['form_params']['BH'] = $value;
862
863
        return $this;
864
    }
865
866
    /**
867
     * @param string $value
868
     *
869
     * @return $this
870
     */
871
    public function withBW($value)
872
    {
873
        $this->data['BW'] = $value;
874
        $this->options['form_params']['BW'] = $value;
875
876
        return $this;
877
    }
878
879
    /**
880
     * @param string $value
881
     *
882
     * @return $this
883
     */
884
    public function withBX($value)
885
    {
886
        $this->data['BX'] = $value;
887
        $this->options['form_params']['BX'] = $value;
888
889
        return $this;
890
    }
891
892
    /**
893
     * @param string $value
894
     *
895
     * @return $this
896
     */
897
    public function withImageURL($value)
898
    {
899
        $this->data['ImageURL'] = $value;
900
        $this->options['form_params']['ImageURL'] = $value;
901
902
        return $this;
903
    }
904
905
    /**
906
     * @param string $value
907
     *
908
     * @return $this
909
     */
910
    public function withBY($value)
911
    {
912
        $this->data['BY'] = $value;
913
        $this->options['form_params']['BY'] = $value;
914
915
        return $this;
916
    }
917
}
918
919
/**
920
 * @method string getImageURL()
921
 */
922
class RemoveImageWatermark extends Rpc
923
{
924
925
    /**
926
     * @param string $value
927
     *
928
     * @return $this
929
     */
930
    public function withImageURL($value)
931
    {
932
        $this->data['ImageURL'] = $value;
933
        $this->options['form_params']['ImageURL'] = $value;
934
935
        return $this;
936
    }
937
}
938