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 ( 89b7eb...bd286d )
by
unknown
10:00
created

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