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 ( ebc52e...a4ada2 )
by
unknown
05:44
created

DetectVehicleICongestion   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 10
dl 0
loc 40
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A withPreRegionIntersectFeatures() 0 6 1
A withImageURL() 0 6 1
A withRoadRegions() 0 6 1
1
<?php
2
3
namespace AlibabaCloud\Objectdet\V20191230;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method ClassifyVehicleInsurance classifyVehicleInsurance(array $options = [])
9
 * @method DetectIPCObject detectIPCObject(array $options = [])
10
 * @method DetectMainBody detectMainBody(array $options = [])
11
 * @method DetectObject detectObject(array $options = [])
12
 * @method DetectTransparentImage detectTransparentImage(array $options = [])
13
 * @method DetectVehicle detectVehicle(array $options = [])
14
 * @method DetectVehicleICongestion detectVehicleICongestion(array $options = [])
15
 * @method DetectVehicleIllegalParking detectVehicleIllegalParking(array $options = [])
16
 * @method DetectWhiteBaseImage detectWhiteBaseImage(array $options = [])
17
 * @method GenerateVehicleRepairPlan generateVehicleRepairPlan(array $options = [])
18
 * @method GetVehicleRepairPlan getVehicleRepairPlan(array $options = [])
19
 * @method RecognizeVehicleDamage recognizeVehicleDamage(array $options = [])
20
 * @method RecognizeVehicleDashboard recognizeVehicleDashboard(array $options = [])
21
 * @method RecognizeVehicleParts recognizeVehicleParts(array $options = [])
22
 */
23
class ObjectdetApiResolver extends ApiResolver
24
{
25
}
26
27
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
28
{
29
    /** @var string */
30
    public $product = 'objectdet';
31
32
    /** @var string */
33
    public $version = '2019-12-30';
34
35
    /** @var string */
36
    public $method = 'POST';
37
38
    /** @var string */
39
    public $serviceCode = 'objectdet';
40
}
41
42
/**
43
 * @method string getImageURL()
44
 */
45
class ClassifyVehicleInsurance extends Rpc
46
{
47
48
    /**
49
     * @param string $value
50
     *
51
     * @return $this
52
     */
53
    public function withImageURL($value)
54
    {
55
        $this->data['ImageURL'] = $value;
56
        $this->options['form_params']['ImageURL'] = $value;
57
58
        return $this;
59
    }
60
}
61
62
/**
63
 * @method string getImageURL()
64
 */
65
class DetectIPCObject extends Rpc
66
{
67
68
    /**
69
     * @param string $value
70
     *
71
     * @return $this
72
     */
73
    public function withImageURL($value)
74
    {
75
        $this->data['ImageURL'] = $value;
76
        $this->options['form_params']['ImageURL'] = $value;
77
78
        return $this;
79
    }
80
}
81
82
/**
83
 * @method string getImageURL()
84
 * @method $this withImageURL($value)
85
 */
86
class DetectMainBody extends Rpc
87
{
88
}
89
90
/**
91
 * @method string getImageURL()
92
 */
93
class DetectObject extends Rpc
94
{
95
96
    /**
97
     * @param string $value
98
     *
99
     * @return $this
100
     */
101
    public function withImageURL($value)
102
    {
103
        $this->data['ImageURL'] = $value;
104
        $this->options['form_params']['ImageURL'] = $value;
105
106
        return $this;
107
    }
108
}
109
110
/**
111
 * @method string getImageURL()
112
 */
113
class DetectTransparentImage extends Rpc
114
{
115
116
    /**
117
     * @param string $value
118
     *
119
     * @return $this
120
     */
121
    public function withImageURL($value)
122
    {
123
        $this->data['ImageURL'] = $value;
124
        $this->options['form_params']['ImageURL'] = $value;
125
126
        return $this;
127
    }
128
}
129
130
/**
131
 * @method string getImageType()
132
 * @method string getImageURL()
133
 */
134
class DetectVehicle extends Rpc
135
{
136
137
    /**
138
     * @param string $value
139
     *
140
     * @return $this
141
     */
142
    public function withImageType($value)
143
    {
144
        $this->data['ImageType'] = $value;
145
        $this->options['form_params']['ImageType'] = $value;
146
147
        return $this;
148
    }
149
150
    /**
151
     * @param string $value
152
     *
153
     * @return $this
154
     */
155
    public function withImageURL($value)
156
    {
157
        $this->data['ImageURL'] = $value;
158
        $this->options['form_params']['ImageURL'] = $value;
159
160
        return $this;
161
    }
162
}
163
164
/**
165
 * @method string getRoadRegions()
166
 * @method string getPreRegionIntersectFeatures()
167
 * @method string getImageURL()
168
 */
169
class DetectVehicleICongestion extends Rpc
170
{
171
172
    /**
173
     * @param string $value
174
     *
175
     * @return $this
176
     */
177
    public function withRoadRegions($value)
178
    {
179
        $this->data['RoadRegions'] = $value;
180
        $this->options['form_params']['RoadRegions'] = $value;
181
182
        return $this;
183
    }
184
185
    /**
186
     * @param string $value
187
     *
188
     * @return $this
189
     */
190
    public function withPreRegionIntersectFeatures($value)
191
    {
192
        $this->data['PreRegionIntersectFeatures'] = $value;
193
        $this->options['form_params']['PreRegionIntersectFeatures'] = $value;
194
195
        return $this;
196
    }
197
198
    /**
199
     * @param string $value
200
     *
201
     * @return $this
202
     */
203
    public function withImageURL($value)
204
    {
205
        $this->data['ImageURL'] = $value;
206
        $this->options['form_params']['ImageURL'] = $value;
207
208
        return $this;
209
    }
210
}
211
212
/**
213
 * @method string getRoadRegions()
214
 * @method string getImageURL()
215
 */
216
class DetectVehicleIllegalParking extends Rpc
217
{
218
219
    /**
220
     * @param string $value
221
     *
222
     * @return $this
223
     */
224
    public function withRoadRegions($value)
225
    {
226
        $this->data['RoadRegions'] = $value;
227
        $this->options['form_params']['RoadRegions'] = $value;
228
229
        return $this;
230
    }
231
232
    /**
233
     * @param string $value
234
     *
235
     * @return $this
236
     */
237
    public function withImageURL($value)
238
    {
239
        $this->data['ImageURL'] = $value;
240
        $this->options['form_params']['ImageURL'] = $value;
241
242
        return $this;
243
    }
244
}
245
246
/**
247
 * @method string getImageURL()
248
 */
249
class DetectWhiteBaseImage extends Rpc
250
{
251
252
    /**
253
     * @param string $value
254
     *
255
     * @return $this
256
     */
257
    public function withImageURL($value)
258
    {
259
        $this->data['ImageURL'] = $value;
260
        $this->options['form_params']['ImageURL'] = $value;
261
262
        return $this;
263
    }
264
}
265
266
/**
267
 * @method array getDamageImageList()
268
 */
269
class GenerateVehicleRepairPlan extends Rpc
270
{
271
272
    /**
273
     * @param array $damageImageList
274
     *
275
     * @return $this
276
     */
277
	public function withDamageImageList(array $damageImageList)
278
	{
279
	    $this->data['DamageImageList'] = $damageImageList;
280
		foreach ($damageImageList as $depth1 => $depth1Value) {
281
			if(isset($depth1Value['ImageUrl'])){
282
				$this->options['form_params']['DamageImageList.' . ($depth1 + 1) . '.ImageUrl'] = $depth1Value['ImageUrl'];
283
			}
284
			if(isset($depth1Value['CreateTimeStamp'])){
285
				$this->options['form_params']['DamageImageList.' . ($depth1 + 1) . '.CreateTimeStamp'] = $depth1Value['CreateTimeStamp'];
286
			}
287
		}
288
289
		return $this;
290
    }
291
}
292
293
/**
294
 * @method string getVinCodeImage()
295
 * @method string getCarNumberImage()
296
 * @method string getTaskId()
297
 */
298
class GetVehicleRepairPlan extends Rpc
299
{
300
301
    /**
302
     * @param string $value
303
     *
304
     * @return $this
305
     */
306
    public function withVinCodeImage($value)
307
    {
308
        $this->data['VinCodeImage'] = $value;
309
        $this->options['form_params']['VinCodeImage'] = $value;
310
311
        return $this;
312
    }
313
314
    /**
315
     * @param string $value
316
     *
317
     * @return $this
318
     */
319
    public function withCarNumberImage($value)
320
    {
321
        $this->data['CarNumberImage'] = $value;
322
        $this->options['form_params']['CarNumberImage'] = $value;
323
324
        return $this;
325
    }
326
327
    /**
328
     * @param string $value
329
     *
330
     * @return $this
331
     */
332
    public function withTaskId($value)
333
    {
334
        $this->data['TaskId'] = $value;
335
        $this->options['form_params']['TaskId'] = $value;
336
337
        return $this;
338
    }
339
}
340
341
/**
342
 * @method string getImageURL()
343
 */
344
class RecognizeVehicleDamage extends Rpc
345
{
346
347
    /**
348
     * @param string $value
349
     *
350
     * @return $this
351
     */
352
    public function withImageURL($value)
353
    {
354
        $this->data['ImageURL'] = $value;
355
        $this->options['form_params']['ImageURL'] = $value;
356
357
        return $this;
358
    }
359
}
360
361
/**
362
 * @method string getImageURL()
363
 */
364
class RecognizeVehicleDashboard extends Rpc
365
{
366
367
    /**
368
     * @param string $value
369
     *
370
     * @return $this
371
     */
372
    public function withImageURL($value)
373
    {
374
        $this->data['ImageURL'] = $value;
375
        $this->options['form_params']['ImageURL'] = $value;
376
377
        return $this;
378
    }
379
}
380
381
/**
382
 * @method string getImageURL()
383
 */
384
class RecognizeVehicleParts extends Rpc
385
{
386
387
    /**
388
     * @param string $value
389
     *
390
     * @return $this
391
     */
392
    public function withImageURL($value)
393
    {
394
        $this->data['ImageURL'] = $value;
395
        $this->options['form_params']['ImageURL'] = $value;
396
397
        return $this;
398
    }
399
}
400