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 ( eb8911...93bb72 )
by
unknown
04:12
created

AssessExposure::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 ExtendImageStyle extendImageStyle(array $options = [])
13
 * @method ImageBlindCharacterWatermark imageBlindCharacterWatermark(array $options = [])
14
 * @method ImageBlindPicWatermark imageBlindPicWatermark(array $options = [])
15
 * @method IntelligentComposition intelligentComposition(array $options = [])
16
 * @method MakeSuperResolutionImage makeSuperResolutionImage(array $options = [])
17
 * @method RecolorImage recolorImage(array $options = [])
18
 * @method RemoveImageSubtitles removeImageSubtitles(array $options = [])
19
 * @method RemoveImageWatermark removeImageWatermark(array $options = [])
20
 */
21
class ImageenhanApiResolver extends ApiResolver
22
{
23
}
24
25
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
26
{
27
    /** @var string */
28
    public $product = 'imageenhan';
29
30
    /** @var string */
31
    public $version = '2019-09-30';
32
33
    /** @var string */
34
    public $method = 'POST';
35
36
    /** @var string */
37
    public $serviceCode = 'imageenhan';
38
}
39
40
/**
41
 * @method string getImageURL()
42
 */
43
class AssessComposition extends Rpc
44
{
45
46
    /**
47
     * @param string $value
48
     *
49
     * @return $this
50
     */
51
    public function withImageURL($value)
52
    {
53
        $this->data['ImageURL'] = $value;
54
        $this->options['form_params']['ImageURL'] = $value;
55
56
        return $this;
57
    }
58
}
59
60
/**
61
 * @method string getImageURL()
62
 */
63
class AssessExposure extends Rpc
64
{
65
66
    /**
67
     * @param string $value
68
     *
69
     * @return $this
70
     */
71
    public function withImageURL($value)
72
    {
73
        $this->data['ImageURL'] = $value;
74
        $this->options['form_params']['ImageURL'] = $value;
75
76
        return $this;
77
    }
78
}
79
80
/**
81
 * @method string getImageURL()
82
 */
83
class AssessSharpness extends Rpc
84
{
85
86
    /**
87
     * @param string $value
88
     *
89
     * @return $this
90
     */
91
    public function withImageURL($value)
92
    {
93
        $this->data['ImageURL'] = $value;
94
        $this->options['form_params']['ImageURL'] = $value;
95
96
        return $this;
97
    }
98
}
99
100
/**
101
 * @method string getUrl()
102
 * @method string getWidth()
103
 * @method string getHeight()
104
 */
105
class ChangeImageSize extends Rpc
106
{
107
108
    /**
109
     * @param string $value
110
     *
111
     * @return $this
112
     */
113
    public function withUrl($value)
114
    {
115
        $this->data['Url'] = $value;
116
        $this->options['form_params']['Url'] = $value;
117
118
        return $this;
119
    }
120
121
    /**
122
     * @param string $value
123
     *
124
     * @return $this
125
     */
126
    public function withWidth($value)
127
    {
128
        $this->data['Width'] = $value;
129
        $this->options['form_params']['Width'] = $value;
130
131
        return $this;
132
    }
133
134
    /**
135
     * @param string $value
136
     *
137
     * @return $this
138
     */
139
    public function withHeight($value)
140
    {
141
        $this->data['Height'] = $value;
142
        $this->options['form_params']['Height'] = $value;
143
144
        return $this;
145
    }
146
}
147
148
/**
149
 * @method string getMajorUrl()
150
 * @method string getStyleUrl()
151
 */
152
class ExtendImageStyle extends Rpc
153
{
154
155
    /**
156
     * @param string $value
157
     *
158
     * @return $this
159
     */
160
    public function withMajorUrl($value)
161
    {
162
        $this->data['MajorUrl'] = $value;
163
        $this->options['form_params']['MajorUrl'] = $value;
164
165
        return $this;
166
    }
167
168
    /**
169
     * @param string $value
170
     *
171
     * @return $this
172
     */
173
    public function withStyleUrl($value)
174
    {
175
        $this->data['StyleUrl'] = $value;
176
        $this->options['form_params']['StyleUrl'] = $value;
177
178
        return $this;
179
    }
180
}
181
182
/**
183
 * @method string getWatermarkImageURL()
184
 * @method string getQualityFactor()
185
 * @method string getFunctionType()
186
 * @method string getOutputFileType()
187
 * @method string getOriginImageURL()
188
 * @method string getText()
189
 */
190
class ImageBlindCharacterWatermark extends Rpc
191
{
192
193
    /**
194
     * @param string $value
195
     *
196
     * @return $this
197
     */
198
    public function withWatermarkImageURL($value)
199
    {
200
        $this->data['WatermarkImageURL'] = $value;
201
        $this->options['form_params']['WatermarkImageURL'] = $value;
202
203
        return $this;
204
    }
205
206
    /**
207
     * @param string $value
208
     *
209
     * @return $this
210
     */
211
    public function withQualityFactor($value)
212
    {
213
        $this->data['QualityFactor'] = $value;
214
        $this->options['form_params']['QualityFactor'] = $value;
215
216
        return $this;
217
    }
218
219
    /**
220
     * @param string $value
221
     *
222
     * @return $this
223
     */
224
    public function withFunctionType($value)
225
    {
226
        $this->data['FunctionType'] = $value;
227
        $this->options['form_params']['FunctionType'] = $value;
228
229
        return $this;
230
    }
231
232
    /**
233
     * @param string $value
234
     *
235
     * @return $this
236
     */
237
    public function withOutputFileType($value)
238
    {
239
        $this->data['OutputFileType'] = $value;
240
        $this->options['form_params']['OutputFileType'] = $value;
241
242
        return $this;
243
    }
244
245
    /**
246
     * @param string $value
247
     *
248
     * @return $this
249
     */
250
    public function withOriginImageURL($value)
251
    {
252
        $this->data['OriginImageURL'] = $value;
253
        $this->options['form_params']['OriginImageURL'] = $value;
254
255
        return $this;
256
    }
257
258
    /**
259
     * @param string $value
260
     *
261
     * @return $this
262
     */
263
    public function withText($value)
264
    {
265
        $this->data['Text'] = $value;
266
        $this->options['form_params']['Text'] = $value;
267
268
        return $this;
269
    }
270
}
271
272
/**
273
 * @method string getWatermarkImageURL()
274
 * @method string getQualityFactor()
275
 * @method string getFunctionType()
276
 * @method string getLogoURL()
277
 * @method string getOutputFileType()
278
 * @method string getOriginImageURL()
279
 */
280
class ImageBlindPicWatermark extends Rpc
281
{
282
283
    /**
284
     * @param string $value
285
     *
286
     * @return $this
287
     */
288
    public function withWatermarkImageURL($value)
289
    {
290
        $this->data['WatermarkImageURL'] = $value;
291
        $this->options['form_params']['WatermarkImageURL'] = $value;
292
293
        return $this;
294
    }
295
296
    /**
297
     * @param string $value
298
     *
299
     * @return $this
300
     */
301
    public function withQualityFactor($value)
302
    {
303
        $this->data['QualityFactor'] = $value;
304
        $this->options['form_params']['QualityFactor'] = $value;
305
306
        return $this;
307
    }
308
309
    /**
310
     * @param string $value
311
     *
312
     * @return $this
313
     */
314
    public function withFunctionType($value)
315
    {
316
        $this->data['FunctionType'] = $value;
317
        $this->options['form_params']['FunctionType'] = $value;
318
319
        return $this;
320
    }
321
322
    /**
323
     * @param string $value
324
     *
325
     * @return $this
326
     */
327
    public function withLogoURL($value)
328
    {
329
        $this->data['LogoURL'] = $value;
330
        $this->options['form_params']['LogoURL'] = $value;
331
332
        return $this;
333
    }
334
335
    /**
336
     * @param string $value
337
     *
338
     * @return $this
339
     */
340
    public function withOutputFileType($value)
341
    {
342
        $this->data['OutputFileType'] = $value;
343
        $this->options['form_params']['OutputFileType'] = $value;
344
345
        return $this;
346
    }
347
348
    /**
349
     * @param string $value
350
     *
351
     * @return $this
352
     */
353
    public function withOriginImageURL($value)
354
    {
355
        $this->data['OriginImageURL'] = $value;
356
        $this->options['form_params']['OriginImageURL'] = $value;
357
358
        return $this;
359
    }
360
}
361
362
/**
363
 * @method string getNumBoxes()
364
 * @method string getImageURL()
365
 */
366
class IntelligentComposition extends Rpc
367
{
368
369
    /**
370
     * @param string $value
371
     *
372
     * @return $this
373
     */
374
    public function withNumBoxes($value)
375
    {
376
        $this->data['NumBoxes'] = $value;
377
        $this->options['form_params']['NumBoxes'] = $value;
378
379
        return $this;
380
    }
381
382
    /**
383
     * @param string $value
384
     *
385
     * @return $this
386
     */
387
    public function withImageURL($value)
388
    {
389
        $this->data['ImageURL'] = $value;
390
        $this->options['form_params']['ImageURL'] = $value;
391
392
        return $this;
393
    }
394
}
395
396
/**
397
 * @method string getUrl()
398
 */
399
class MakeSuperResolutionImage extends Rpc
400
{
401
402
    /**
403
     * @param string $value
404
     *
405
     * @return $this
406
     */
407
    public function withUrl($value)
408
    {
409
        $this->data['Url'] = $value;
410
        $this->options['form_params']['Url'] = $value;
411
412
        return $this;
413
    }
414
}
415
416
/**
417
 * @method array getColorTemplate()
418
 * @method string getUrl()
419
 * @method string getMode()
420
 * @method string getColorCount()
421
 * @method string getRefUrl()
422
 */
423
class RecolorImage extends Rpc
424
{
425
426
    /**
427
     * @param array $colorTemplate
428
     *
429
     * @return $this
430
     */
431
	public function withColorTemplate(array $colorTemplate)
432
	{
433
	    $this->data['ColorTemplate'] = $colorTemplate;
434
		foreach ($colorTemplate as $depth1 => $depth1Value) {
435
			if(isset($depth1Value['Color'])){
436
				$this->options['form_params']['ColorTemplate.' . ($depth1 + 1) . '.Color'] = $depth1Value['Color'];
437
			}
438
		}
439
440
		return $this;
441
    }
442
443
    /**
444
     * @param string $value
445
     *
446
     * @return $this
447
     */
448
    public function withUrl($value)
449
    {
450
        $this->data['Url'] = $value;
451
        $this->options['form_params']['Url'] = $value;
452
453
        return $this;
454
    }
455
456
    /**
457
     * @param string $value
458
     *
459
     * @return $this
460
     */
461
    public function withMode($value)
462
    {
463
        $this->data['Mode'] = $value;
464
        $this->options['form_params']['Mode'] = $value;
465
466
        return $this;
467
    }
468
469
    /**
470
     * @param string $value
471
     *
472
     * @return $this
473
     */
474
    public function withColorCount($value)
475
    {
476
        $this->data['ColorCount'] = $value;
477
        $this->options['form_params']['ColorCount'] = $value;
478
479
        return $this;
480
    }
481
482
    /**
483
     * @param string $value
484
     *
485
     * @return $this
486
     */
487
    public function withRefUrl($value)
488
    {
489
        $this->data['RefUrl'] = $value;
490
        $this->options['form_params']['RefUrl'] = $value;
491
492
        return $this;
493
    }
494
}
495
496
/**
497
 * @method string getBH()
498
 * @method string getBW()
499
 * @method string getBX()
500
 * @method string getImageURL()
501
 * @method string getBY()
502
 */
503
class RemoveImageSubtitles extends Rpc
504
{
505
506
    /**
507
     * @param string $value
508
     *
509
     * @return $this
510
     */
511
    public function withBH($value)
512
    {
513
        $this->data['BH'] = $value;
514
        $this->options['form_params']['BH'] = $value;
515
516
        return $this;
517
    }
518
519
    /**
520
     * @param string $value
521
     *
522
     * @return $this
523
     */
524
    public function withBW($value)
525
    {
526
        $this->data['BW'] = $value;
527
        $this->options['form_params']['BW'] = $value;
528
529
        return $this;
530
    }
531
532
    /**
533
     * @param string $value
534
     *
535
     * @return $this
536
     */
537
    public function withBX($value)
538
    {
539
        $this->data['BX'] = $value;
540
        $this->options['form_params']['BX'] = $value;
541
542
        return $this;
543
    }
544
545
    /**
546
     * @param string $value
547
     *
548
     * @return $this
549
     */
550
    public function withImageURL($value)
551
    {
552
        $this->data['ImageURL'] = $value;
553
        $this->options['form_params']['ImageURL'] = $value;
554
555
        return $this;
556
    }
557
558
    /**
559
     * @param string $value
560
     *
561
     * @return $this
562
     */
563
    public function withBY($value)
564
    {
565
        $this->data['BY'] = $value;
566
        $this->options['form_params']['BY'] = $value;
567
568
        return $this;
569
    }
570
}
571
572
/**
573
 * @method string getImageURL()
574
 */
575
class RemoveImageWatermark extends Rpc
576
{
577
578
    /**
579
     * @param string $value
580
     *
581
     * @return $this
582
     */
583
    public function withImageURL($value)
584
    {
585
        $this->data['ImageURL'] = $value;
586
        $this->options['form_params']['ImageURL'] = $value;
587
588
        return $this;
589
    }
590
}
591