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 ( 816e6d...058cbb )
by
unknown
15:55 queued 08:07
created

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