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 ( eb2641...db9fe3 )
by
unknown
08:30
created

RecognizeScene::withImageType()   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
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace AlibabaCloud\Imagerecog\V20190930;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method ClassifyingRubbish classifyingRubbish(array $options = [])
9
 * @method DetectFruits detectFruits(array $options = [])
10
 * @method DetectImageElements detectImageElements(array $options = [])
11
 * @method EvaluateCertificateQuality evaluateCertificateQuality(array $options = [])
12
 * @method GetAsyncJobResult getAsyncJobResult(array $options = [])
13
 * @method RecognizeFood recognizeFood(array $options = [])
14
 * @method RecognizeImageColor recognizeImageColor(array $options = [])
15
 * @method RecognizeImageStyle recognizeImageStyle(array $options = [])
16
 * @method RecognizeScene recognizeScene(array $options = [])
17
 * @method RecognizeVehicleType recognizeVehicleType(array $options = [])
18
 * @method TaggingAdImage taggingAdImage(array $options = [])
19
 * @method TaggingImage taggingImage(array $options = [])
20
 */
21
class ImagerecogApiResolver extends ApiResolver
22
{
23
}
24
25
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
26
{
27
    /** @var string */
28
    public $product = 'imagerecog';
29
30
    /** @var string */
31
    public $version = '2019-09-30';
32
33
    /** @var string */
34
    public $method = 'POST';
35
}
36
37
/**
38
 * @method string getFormatResultToJson()
39
 * @method $this withFormatResultToJson($value)
40
 * @method string getOssFile()
41
 * @method $this withOssFile($value)
42
 * @method string getRequestProxyBy()
43
 * @method $this withRequestProxyBy($value)
44
 * @method string getImageURL()
45
 */
46
class ClassifyingRubbish extends Rpc
47
{
48
49
    /**
50
     * @param string $value
51
     *
52
     * @return $this
53
     */
54
    public function withImageURL($value)
55
    {
56
        $this->data['ImageURL'] = $value;
57
        $this->options['form_params']['ImageURL'] = $value;
58
59
        return $this;
60
    }
61
}
62
63
/**
64
 * @method string getFormatResultToJson()
65
 * @method $this withFormatResultToJson($value)
66
 * @method string getOssFile()
67
 * @method $this withOssFile($value)
68
 * @method string getRequestProxyBy()
69
 * @method $this withRequestProxyBy($value)
70
 * @method string getImageURL()
71
 */
72
class DetectFruits extends Rpc
73
{
74
75
    /**
76
     * @param string $value
77
     *
78
     * @return $this
79
     */
80
    public function withImageURL($value)
81
    {
82
        $this->data['ImageURL'] = $value;
83
        $this->options['form_params']['ImageURL'] = $value;
84
85
        return $this;
86
    }
87
}
88
89
/**
90
 * @method string getFormatResultToJson()
91
 * @method $this withFormatResultToJson($value)
92
 * @method string getOssFile()
93
 * @method $this withOssFile($value)
94
 * @method string getRequestProxyBy()
95
 * @method $this withRequestProxyBy($value)
96
 * @method string getUrl()
97
 */
98
class DetectImageElements extends Rpc
99
{
100
101
    /**
102
     * @param string $value
103
     *
104
     * @return $this
105
     */
106
    public function withUrl($value)
107
    {
108
        $this->data['Url'] = $value;
109
        $this->options['form_params']['Url'] = $value;
110
111
        return $this;
112
    }
113
}
114
115
/**
116
 * @method string getFormatResultToJson()
117
 * @method $this withFormatResultToJson($value)
118
 * @method string getType()
119
 * @method string getOssFile()
120
 * @method $this withOssFile($value)
121
 * @method string getRequestProxyBy()
122
 * @method $this withRequestProxyBy($value)
123
 * @method string getImageURL()
124
 */
125
class EvaluateCertificateQuality extends Rpc
126
{
127
128
    /**
129
     * @param string $value
130
     *
131
     * @return $this
132
     */
133
    public function withType($value)
134
    {
135
        $this->data['Type'] = $value;
136
        $this->options['form_params']['Type'] = $value;
137
138
        return $this;
139
    }
140
141
    /**
142
     * @param string $value
143
     *
144
     * @return $this
145
     */
146
    public function withImageURL($value)
147
    {
148
        $this->data['ImageURL'] = $value;
149
        $this->options['form_params']['ImageURL'] = $value;
150
151
        return $this;
152
    }
153
}
154
155
/**
156
 * @method string getFormatResultToJson()
157
 * @method $this withFormatResultToJson($value)
158
 * @method string getJobId()
159
 * @method $this withJobId($value)
160
 * @method string getOssFile()
161
 * @method $this withOssFile($value)
162
 * @method string getRequestProxyBy()
163
 * @method $this withRequestProxyBy($value)
164
 * @method string getAsync()
165
 * @method $this withAsync($value)
166
 */
167
class GetAsyncJobResult extends Rpc
168
{
169
170
    /** @var string */
171
    public $method = 'GET';
172
}
173
174
/**
175
 * @method string getFormatResultToJson()
176
 * @method $this withFormatResultToJson($value)
177
 * @method string getOssFile()
178
 * @method $this withOssFile($value)
179
 * @method string getRequestProxyBy()
180
 * @method $this withRequestProxyBy($value)
181
 * @method string getImageURL()
182
 */
183
class RecognizeFood extends Rpc
184
{
185
186
    /**
187
     * @param string $value
188
     *
189
     * @return $this
190
     */
191
    public function withImageURL($value)
192
    {
193
        $this->data['ImageURL'] = $value;
194
        $this->options['form_params']['ImageURL'] = $value;
195
196
        return $this;
197
    }
198
}
199
200
/**
201
 * @method string getFormatResultToJson()
202
 * @method $this withFormatResultToJson($value)
203
 * @method string getColorCount()
204
 * @method string getOssFile()
205
 * @method $this withOssFile($value)
206
 * @method string getRequestProxyBy()
207
 * @method $this withRequestProxyBy($value)
208
 * @method string getUrl()
209
 */
210
class RecognizeImageColor extends Rpc
211
{
212
213
    /**
214
     * @param string $value
215
     *
216
     * @return $this
217
     */
218
    public function withColorCount($value)
219
    {
220
        $this->data['ColorCount'] = $value;
221
        $this->options['form_params']['ColorCount'] = $value;
222
223
        return $this;
224
    }
225
226
    /**
227
     * @param string $value
228
     *
229
     * @return $this
230
     */
231
    public function withUrl($value)
232
    {
233
        $this->data['Url'] = $value;
234
        $this->options['form_params']['Url'] = $value;
235
236
        return $this;
237
    }
238
}
239
240
/**
241
 * @method string getFormatResultToJson()
242
 * @method $this withFormatResultToJson($value)
243
 * @method string getOssFile()
244
 * @method $this withOssFile($value)
245
 * @method string getRequestProxyBy()
246
 * @method $this withRequestProxyBy($value)
247
 * @method string getUrl()
248
 */
249
class RecognizeImageStyle extends Rpc
250
{
251
252
    /**
253
     * @param string $value
254
     *
255
     * @return $this
256
     */
257
    public function withUrl($value)
258
    {
259
        $this->data['Url'] = $value;
260
        $this->options['form_params']['Url'] = $value;
261
262
        return $this;
263
    }
264
}
265
266
/**
267
 * @method string getFormatResultToJson()
268
 * @method $this withFormatResultToJson($value)
269
 * @method string getOssFile()
270
 * @method $this withOssFile($value)
271
 * @method string getImageType()
272
 * @method string getRequestProxyBy()
273
 * @method $this withRequestProxyBy($value)
274
 * @method string getImageURL()
275
 */
276
class RecognizeScene extends Rpc
277
{
278
279
    /**
280
     * @param string $value
281
     *
282
     * @return $this
283
     */
284
    public function withImageType($value)
285
    {
286
        $this->data['ImageType'] = $value;
287
        $this->options['form_params']['ImageType'] = $value;
288
289
        return $this;
290
    }
291
292
    /**
293
     * @param string $value
294
     *
295
     * @return $this
296
     */
297
    public function withImageURL($value)
298
    {
299
        $this->data['ImageURL'] = $value;
300
        $this->options['form_params']['ImageURL'] = $value;
301
302
        return $this;
303
    }
304
}
305
306
/**
307
 * @method string getFormatResultToJson()
308
 * @method $this withFormatResultToJson($value)
309
 * @method string getOssFile()
310
 * @method $this withOssFile($value)
311
 * @method string getRequestProxyBy()
312
 * @method $this withRequestProxyBy($value)
313
 * @method string getImageURL()
314
 */
315
class RecognizeVehicleType extends Rpc
316
{
317
318
    /**
319
     * @param string $value
320
     *
321
     * @return $this
322
     */
323
    public function withImageURL($value)
324
    {
325
        $this->data['ImageURL'] = $value;
326
        $this->options['form_params']['ImageURL'] = $value;
327
328
        return $this;
329
    }
330
}
331
332
/**
333
 * @method string getFormatResultToJson()
334
 * @method $this withFormatResultToJson($value)
335
 * @method string getOssFile()
336
 * @method $this withOssFile($value)
337
 * @method string getImageType()
338
 * @method string getRequestProxyBy()
339
 * @method $this withRequestProxyBy($value)
340
 * @method string getAsync()
341
 * @method string getImageURL()
342
 */
343
class TaggingAdImage extends Rpc
344
{
345
346
    /**
347
     * @param string $value
348
     *
349
     * @return $this
350
     */
351
    public function withImageType($value)
352
    {
353
        $this->data['ImageType'] = $value;
354
        $this->options['form_params']['ImageType'] = $value;
355
356
        return $this;
357
    }
358
359
    /**
360
     * @param string $value
361
     *
362
     * @return $this
363
     */
364
    public function withAsync($value)
365
    {
366
        $this->data['Async'] = $value;
367
        $this->options['form_params']['Async'] = $value;
368
369
        return $this;
370
    }
371
372
    /**
373
     * @param string $value
374
     *
375
     * @return $this
376
     */
377
    public function withImageURL($value)
378
    {
379
        $this->data['ImageURL'] = $value;
380
        $this->options['form_params']['ImageURL'] = $value;
381
382
        return $this;
383
    }
384
}
385
386
/**
387
 * @method string getFormatResultToJson()
388
 * @method $this withFormatResultToJson($value)
389
 * @method string getMode()
390
 * @method string getOssFile()
391
 * @method $this withOssFile($value)
392
 * @method string getImageType()
393
 * @method string getRequestProxyBy()
394
 * @method $this withRequestProxyBy($value)
395
 * @method string getAsync()
396
 * @method string getImageURL()
397
 */
398
class TaggingImage extends Rpc
399
{
400
401
    /**
402
     * @param string $value
403
     *
404
     * @return $this
405
     */
406
    public function withMode($value)
407
    {
408
        $this->data['Mode'] = $value;
409
        $this->options['form_params']['Mode'] = $value;
410
411
        return $this;
412
    }
413
414
    /**
415
     * @param string $value
416
     *
417
     * @return $this
418
     */
419
    public function withImageType($value)
420
    {
421
        $this->data['ImageType'] = $value;
422
        $this->options['form_params']['ImageType'] = $value;
423
424
        return $this;
425
    }
426
427
    /**
428
     * @param string $value
429
     *
430
     * @return $this
431
     */
432
    public function withAsync($value)
433
    {
434
        $this->data['Async'] = $value;
435
        $this->options['form_params']['Async'] = $value;
436
437
        return $this;
438
    }
439
440
    /**
441
     * @param string $value
442
     *
443
     * @return $this
444
     */
445
    public function withImageURL($value)
446
    {
447
        $this->data['ImageURL'] = $value;
448
        $this->options['form_params']['ImageURL'] = $value;
449
450
        return $this;
451
    }
452
}
453