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 ( 33f941...e1320c )
by
unknown
21:57 queued 15:34
created

EnhanceImageColor   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 10
dl 0
loc 40
rs 10
c 0
b 0
f 0

3 Methods

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