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 ( e65562...609935 )
by
unknown
06:05
created

ColorizeImage::withImageURL()   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 getUrl()
609
 */
610
class MakeSuperResolutionImage extends Rpc
611
{
612
613
    /**
614
     * @param string $value
615
     *
616
     * @return $this
617
     */
618
    public function withUrl($value)
619
    {
620
        $this->data['Url'] = $value;
621
        $this->options['form_params']['Url'] = $value;
622
623
        return $this;
624
    }
625
}
626
627
/**
628
 * @method array getColorTemplate()
629
 * @method string getDegree()
630
 * @method string getUrl()
631
 * @method string getMode()
632
 * @method string getAsync()
633
 * @method string getColorCount()
634
 * @method string getRefUrl()
635
 */
636
class RecolorHDImage extends Rpc
637
{
638
639
    /**
640
     * @param array $colorTemplate
641
     *
642
     * @return $this
643
     */
644
	public function withColorTemplate(array $colorTemplate)
645
	{
646
	    $this->data['ColorTemplate'] = $colorTemplate;
647
		foreach ($colorTemplate as $depth1 => $depth1Value) {
648
			if(isset($depth1Value['Color'])){
649
				$this->options['form_params']['ColorTemplate.' . ($depth1 + 1) . '.Color'] = $depth1Value['Color'];
650
			}
651
		}
652
653
		return $this;
654
    }
655
656
    /**
657
     * @param string $value
658
     *
659
     * @return $this
660
     */
661
    public function withDegree($value)
662
    {
663
        $this->data['Degree'] = $value;
664
        $this->options['form_params']['Degree'] = $value;
665
666
        return $this;
667
    }
668
669
    /**
670
     * @param string $value
671
     *
672
     * @return $this
673
     */
674
    public function withUrl($value)
675
    {
676
        $this->data['Url'] = $value;
677
        $this->options['form_params']['Url'] = $value;
678
679
        return $this;
680
    }
681
682
    /**
683
     * @param string $value
684
     *
685
     * @return $this
686
     */
687
    public function withMode($value)
688
    {
689
        $this->data['Mode'] = $value;
690
        $this->options['form_params']['Mode'] = $value;
691
692
        return $this;
693
    }
694
695
    /**
696
     * @param string $value
697
     *
698
     * @return $this
699
     */
700
    public function withAsync($value)
701
    {
702
        $this->data['Async'] = $value;
703
        $this->options['form_params']['Async'] = $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 string $value
723
     *
724
     * @return $this
725
     */
726
    public function withRefUrl($value)
727
    {
728
        $this->data['RefUrl'] = $value;
729
        $this->options['form_params']['RefUrl'] = $value;
730
731
        return $this;
732
    }
733
}
734
735
/**
736
 * @method array getColorTemplate()
737
 * @method string getUrl()
738
 * @method string getMode()
739
 * @method string getColorCount()
740
 * @method string getRefUrl()
741
 */
742
class RecolorImage extends Rpc
743
{
744
745
    /**
746
     * @param array $colorTemplate
747
     *
748
     * @return $this
749
     */
750
	public function withColorTemplate(array $colorTemplate)
751
	{
752
	    $this->data['ColorTemplate'] = $colorTemplate;
753
		foreach ($colorTemplate as $depth1 => $depth1Value) {
754
			if(isset($depth1Value['Color'])){
755
				$this->options['form_params']['ColorTemplate.' . ($depth1 + 1) . '.Color'] = $depth1Value['Color'];
756
			}
757
		}
758
759
		return $this;
760
    }
761
762
    /**
763
     * @param string $value
764
     *
765
     * @return $this
766
     */
767
    public function withUrl($value)
768
    {
769
        $this->data['Url'] = $value;
770
        $this->options['form_params']['Url'] = $value;
771
772
        return $this;
773
    }
774
775
    /**
776
     * @param string $value
777
     *
778
     * @return $this
779
     */
780
    public function withMode($value)
781
    {
782
        $this->data['Mode'] = $value;
783
        $this->options['form_params']['Mode'] = $value;
784
785
        return $this;
786
    }
787
788
    /**
789
     * @param string $value
790
     *
791
     * @return $this
792
     */
793
    public function withColorCount($value)
794
    {
795
        $this->data['ColorCount'] = $value;
796
        $this->options['form_params']['ColorCount'] = $value;
797
798
        return $this;
799
    }
800
801
    /**
802
     * @param string $value
803
     *
804
     * @return $this
805
     */
806
    public function withRefUrl($value)
807
    {
808
        $this->data['RefUrl'] = $value;
809
        $this->options['form_params']['RefUrl'] = $value;
810
811
        return $this;
812
    }
813
}
814
815
/**
816
 * @method string getBH()
817
 * @method string getBW()
818
 * @method string getBX()
819
 * @method string getImageURL()
820
 * @method string getBY()
821
 */
822
class RemoveImageSubtitles extends Rpc
823
{
824
825
    /**
826
     * @param string $value
827
     *
828
     * @return $this
829
     */
830
    public function withBH($value)
831
    {
832
        $this->data['BH'] = $value;
833
        $this->options['form_params']['BH'] = $value;
834
835
        return $this;
836
    }
837
838
    /**
839
     * @param string $value
840
     *
841
     * @return $this
842
     */
843
    public function withBW($value)
844
    {
845
        $this->data['BW'] = $value;
846
        $this->options['form_params']['BW'] = $value;
847
848
        return $this;
849
    }
850
851
    /**
852
     * @param string $value
853
     *
854
     * @return $this
855
     */
856
    public function withBX($value)
857
    {
858
        $this->data['BX'] = $value;
859
        $this->options['form_params']['BX'] = $value;
860
861
        return $this;
862
    }
863
864
    /**
865
     * @param string $value
866
     *
867
     * @return $this
868
     */
869
    public function withImageURL($value)
870
    {
871
        $this->data['ImageURL'] = $value;
872
        $this->options['form_params']['ImageURL'] = $value;
873
874
        return $this;
875
    }
876
877
    /**
878
     * @param string $value
879
     *
880
     * @return $this
881
     */
882
    public function withBY($value)
883
    {
884
        $this->data['BY'] = $value;
885
        $this->options['form_params']['BY'] = $value;
886
887
        return $this;
888
    }
889
}
890
891
/**
892
 * @method string getImageURL()
893
 */
894
class RemoveImageWatermark extends Rpc
895
{
896
897
    /**
898
     * @param string $value
899
     *
900
     * @return $this
901
     */
902
    public function withImageURL($value)
903
    {
904
        $this->data['ImageURL'] = $value;
905
        $this->options['form_params']['ImageURL'] = $value;
906
907
        return $this;
908
    }
909
}
910