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 ( 52624e...3c0967 )
by
unknown
07:07
created

DetectVideoFrame::withHeight()   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\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 DetectKitchenAnimals detectKitchenAnimals(array $options = [])
11
 * @method DetectMainBody detectMainBody(array $options = [])
12
 * @method DetectObject detectObject(array $options = [])
13
 * @method DetectTransparentImage detectTransparentImage(array $options = [])
14
 * @method DetectVehicle detectVehicle(array $options = [])
15
 * @method DetectVehicleICongestion detectVehicleICongestion(array $options = [])
16
 * @method DetectVehicleIllegalParking detectVehicleIllegalParking(array $options = [])
17
 * @method DetectVideoFrame detectVideoFrame(array $options = [])
18
 * @method DetectVideoIPCObject detectVideoIPCObject(array $options = [])
19
 * @method DetectWhiteBaseImage detectWhiteBaseImage(array $options = [])
20
 * @method DetectWorkwear detectWorkwear(array $options = [])
21
 * @method GenerateVehicleRepairPlan generateVehicleRepairPlan(array $options = [])
22
 * @method GetAsyncJobResult getAsyncJobResult(array $options = [])
23
 * @method GetVehicleRepairPlan getVehicleRepairPlan(array $options = [])
24
 * @method RecognizeVehicleDamage recognizeVehicleDamage(array $options = [])
25
 * @method RecognizeVehicleDashboard recognizeVehicleDashboard(array $options = [])
26
 * @method RecognizeVehicleParts recognizeVehicleParts(array $options = [])
27
 */
28
class ObjectdetApiResolver extends ApiResolver
29
{
30
}
31
32
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
33
{
34
    /** @var string */
35
    public $product = 'objectdet';
36
37
    /** @var string */
38
    public $version = '2019-12-30';
39
40
    /** @var string */
41
    public $method = 'POST';
42
43
    /** @var string */
44
    public $serviceCode = 'objectdet';
45
}
46
47
/**
48
 * @method string getImageURL()
49
 */
50
class ClassifyVehicleInsurance 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 getOssFile()
69
 * @method $this withOssFile($value)
70
 * @method string getRequestProxyBy()
71
 * @method $this withRequestProxyBy($value)
72
 * @method string getImageURL()
73
 */
74
class DetectIPCObject extends Rpc
75
{
76
77
    /**
78
     * @param string $value
79
     *
80
     * @return $this
81
     */
82
    public function withImageURL($value)
83
    {
84
        $this->data['ImageURL'] = $value;
85
        $this->options['form_params']['ImageURL'] = $value;
86
87
        return $this;
88
    }
89
}
90
91
/**
92
 * @method string getFormatResultToJson()
93
 * @method $this withFormatResultToJson($value)
94
 * @method string getImageURLB()
95
 * @method string getImageURLA()
96
 * @method string getOssFile()
97
 * @method $this withOssFile($value)
98
 * @method string getRequestProxyBy()
99
 * @method $this withRequestProxyBy($value)
100
 */
101
class DetectKitchenAnimals extends Rpc
102
{
103
104
    /**
105
     * @param string $value
106
     *
107
     * @return $this
108
     */
109
    public function withImageURLB($value)
110
    {
111
        $this->data['ImageURLB'] = $value;
112
        $this->options['form_params']['ImageURLB'] = $value;
113
114
        return $this;
115
    }
116
117
    /**
118
     * @param string $value
119
     *
120
     * @return $this
121
     */
122
    public function withImageURLA($value)
123
    {
124
        $this->data['ImageURLA'] = $value;
125
        $this->options['form_params']['ImageURLA'] = $value;
126
127
        return $this;
128
    }
129
}
130
131
/**
132
 * @method string getImageURL()
133
 * @method $this withImageURL($value)
134
 */
135
class DetectMainBody extends Rpc
136
{
137
}
138
139
/**
140
 * @method string getImageURL()
141
 */
142
class DetectObject extends Rpc
143
{
144
145
    /**
146
     * @param string $value
147
     *
148
     * @return $this
149
     */
150
    public function withImageURL($value)
151
    {
152
        $this->data['ImageURL'] = $value;
153
        $this->options['form_params']['ImageURL'] = $value;
154
155
        return $this;
156
    }
157
}
158
159
/**
160
 * @method string getImageURL()
161
 */
162
class DetectTransparentImage extends Rpc
163
{
164
165
    /**
166
     * @param string $value
167
     *
168
     * @return $this
169
     */
170
    public function withImageURL($value)
171
    {
172
        $this->data['ImageURL'] = $value;
173
        $this->options['form_params']['ImageURL'] = $value;
174
175
        return $this;
176
    }
177
}
178
179
/**
180
 * @method string getImageType()
181
 * @method string getImageURL()
182
 */
183
class DetectVehicle extends Rpc
184
{
185
186
    /**
187
     * @param string $value
188
     *
189
     * @return $this
190
     */
191
    public function withImageType($value)
192
    {
193
        $this->data['ImageType'] = $value;
194
        $this->options['form_params']['ImageType'] = $value;
195
196
        return $this;
197
    }
198
199
    /**
200
     * @param string $value
201
     *
202
     * @return $this
203
     */
204
    public function withImageURL($value)
205
    {
206
        $this->data['ImageURL'] = $value;
207
        $this->options['form_params']['ImageURL'] = $value;
208
209
        return $this;
210
    }
211
}
212
213
/**
214
 * @method string getRoadRegions()
215
 * @method string getOriginRequestId()
216
 * @method $this withOriginRequestId($value)
217
 * @method string getPreRegionIntersectFeatures()
218
 * @method string getStreamArn()
219
 * @method $this withStreamArn($value)
220
 * @method string getImageURL()
221
 */
222
class DetectVehicleICongestion extends Rpc
223
{
224
225
    /**
226
     * @param string $value
227
     *
228
     * @return $this
229
     */
230
    public function withRoadRegions($value)
231
    {
232
        $this->data['RoadRegions'] = $value;
233
        $this->options['form_params']['RoadRegions'] = $value;
234
235
        return $this;
236
    }
237
238
    /**
239
     * @param string $value
240
     *
241
     * @return $this
242
     */
243
    public function withPreRegionIntersectFeatures($value)
244
    {
245
        $this->data['PreRegionIntersectFeatures'] = $value;
246
        $this->options['form_params']['PreRegionIntersectFeatures'] = $value;
247
248
        return $this;
249
    }
250
251
    /**
252
     * @param string $value
253
     *
254
     * @return $this
255
     */
256
    public function withImageURL($value)
257
    {
258
        $this->data['ImageURL'] = $value;
259
        $this->options['form_params']['ImageURL'] = $value;
260
261
        return $this;
262
    }
263
}
264
265
/**
266
 * @method string getRoadRegions()
267
 * @method string getOriginRequestId()
268
 * @method $this withOriginRequestId($value)
269
 * @method string getStreamArn()
270
 * @method $this withStreamArn($value)
271
 * @method string getImageURL()
272
 */
273
class DetectVehicleIllegalParking extends Rpc
274
{
275
276
    /**
277
     * @param string $value
278
     *
279
     * @return $this
280
     */
281
    public function withRoadRegions($value)
282
    {
283
        $this->data['RoadRegions'] = $value;
284
        $this->options['form_params']['RoadRegions'] = $value;
285
286
        return $this;
287
    }
288
289
    /**
290
     * @param string $value
291
     *
292
     * @return $this
293
     */
294
    public function withImageURL($value)
295
    {
296
        $this->data['ImageURL'] = $value;
297
        $this->options['form_params']['ImageURL'] = $value;
298
299
        return $this;
300
    }
301
}
302
303
/**
304
 * @method string getFeatures()
305
 * @method string getHeight()
306
 * @method string getCreateTime()
307
 * @method string getFeatureConfig()
308
 * @method string getOwnerId()
309
 * @method string getStreamArn()
310
 * @method string getImageURL()
311
 * @method string getWidth()
312
 */
313
class DetectVideoFrame extends Rpc
314
{
315
316
    /**
317
     * @param string $value
318
     *
319
     * @return $this
320
     */
321
    public function withFeatures($value)
322
    {
323
        $this->data['Features'] = $value;
324
        $this->options['form_params']['Features'] = $value;
325
326
        return $this;
327
    }
328
329
    /**
330
     * @param string $value
331
     *
332
     * @return $this
333
     */
334
    public function withHeight($value)
335
    {
336
        $this->data['Height'] = $value;
337
        $this->options['form_params']['Height'] = $value;
338
339
        return $this;
340
    }
341
342
    /**
343
     * @param string $value
344
     *
345
     * @return $this
346
     */
347
    public function withCreateTime($value)
348
    {
349
        $this->data['CreateTime'] = $value;
350
        $this->options['form_params']['CreateTime'] = $value;
351
352
        return $this;
353
    }
354
355
    /**
356
     * @param string $value
357
     *
358
     * @return $this
359
     */
360
    public function withFeatureConfig($value)
361
    {
362
        $this->data['FeatureConfig'] = $value;
363
        $this->options['form_params']['FeatureConfig'] = $value;
364
365
        return $this;
366
    }
367
368
    /**
369
     * @param string $value
370
     *
371
     * @return $this
372
     */
373
    public function withOwnerId($value)
374
    {
375
        $this->data['OwnerId'] = $value;
376
        $this->options['form_params']['OwnerId'] = $value;
377
378
        return $this;
379
    }
380
381
    /**
382
     * @param string $value
383
     *
384
     * @return $this
385
     */
386
    public function withStreamArn($value)
387
    {
388
        $this->data['StreamArn'] = $value;
389
        $this->options['form_params']['StreamArn'] = $value;
390
391
        return $this;
392
    }
393
394
    /**
395
     * @param string $value
396
     *
397
     * @return $this
398
     */
399
    public function withImageURL($value)
400
    {
401
        $this->data['ImageURL'] = $value;
402
        $this->options['form_params']['ImageURL'] = $value;
403
404
        return $this;
405
    }
406
407
    /**
408
     * @param string $value
409
     *
410
     * @return $this
411
     */
412
    public function withWidth($value)
413
    {
414
        $this->data['Width'] = $value;
415
        $this->options['form_params']['Width'] = $value;
416
417
        return $this;
418
    }
419
}
420
421
/**
422
 * @method string getStartTimestamp()
423
 * @method string getOssFile()
424
 * @method $this withOssFile($value)
425
 * @method string getCallbackOnlyHasObject()
426
 * @method string getRequestProxyBy()
427
 * @method $this withRequestProxyBy($value)
428
 * @method string getAsync()
429
 * @method string getVideoURL()
430
 */
431
class DetectVideoIPCObject extends Rpc
432
{
433
434
    /**
435
     * @param string $value
436
     *
437
     * @return $this
438
     */
439
    public function withStartTimestamp($value)
440
    {
441
        $this->data['StartTimestamp'] = $value;
442
        $this->options['form_params']['StartTimestamp'] = $value;
443
444
        return $this;
445
    }
446
447
    /**
448
     * @param string $value
449
     *
450
     * @return $this
451
     */
452
    public function withCallbackOnlyHasObject($value)
453
    {
454
        $this->data['CallbackOnlyHasObject'] = $value;
455
        $this->options['form_params']['CallbackOnlyHasObject'] = $value;
456
457
        return $this;
458
    }
459
460
    /**
461
     * @param string $value
462
     *
463
     * @return $this
464
     */
465
    public function withAsync($value)
466
    {
467
        $this->data['Async'] = $value;
468
        $this->options['form_params']['Async'] = $value;
469
470
        return $this;
471
    }
472
473
    /**
474
     * @param string $value
475
     *
476
     * @return $this
477
     */
478
    public function withVideoURL($value)
479
    {
480
        $this->data['VideoURL'] = $value;
481
        $this->options['form_params']['VideoURL'] = $value;
482
483
        return $this;
484
    }
485
}
486
487
/**
488
 * @method string getImageURL()
489
 */
490
class DetectWhiteBaseImage extends Rpc
491
{
492
493
    /**
494
     * @param string $value
495
     *
496
     * @return $this
497
     */
498
    public function withImageURL($value)
499
    {
500
        $this->data['ImageURL'] = $value;
501
        $this->options['form_params']['ImageURL'] = $value;
502
503
        return $this;
504
    }
505
}
506
507
/**
508
 * @method string getFormatResultToJson()
509
 * @method $this withFormatResultToJson($value)
510
 * @method string getOssFile()
511
 * @method $this withOssFile($value)
512
 * @method string getRequestProxyBy()
513
 * @method $this withRequestProxyBy($value)
514
 * @method string getClothes()
515
 * @method array getLabels()
516
 * @method string getImageUrl()
517
 */
518
class DetectWorkwear extends Rpc
519
{
520
521
    /**
522
     * @param string $value
523
     *
524
     * @return $this
525
     */
526
    public function withClothes($value)
527
    {
528
        $this->data['Clothes'] = $value;
529
        $this->options['form_params']['Clothes'] = $value;
530
531
        return $this;
532
    }
533
534
    /**
535
     * @param array $labels
536
     *
537
     * @return $this
538
     */
539
	public function withLabels(array $labels)
540
	{
541
	    $this->data['Labels'] = $labels;
542
		foreach ($labels as $i => $iValue) {
543
			$this->options['form_params']['Labels.' . ($i + 1)] = $iValue;
544
		}
545
546
		return $this;
547
    }
548
549
    /**
550
     * @param string $value
551
     *
552
     * @return $this
553
     */
554
    public function withImageUrl($value)
555
    {
556
        $this->data['ImageUrl'] = $value;
557
        $this->options['form_params']['ImageUrl'] = $value;
558
559
        return $this;
560
    }
561
}
562
563
/**
564
 * @method array getDamageImageList()
565
 */
566
class GenerateVehicleRepairPlan extends Rpc
567
{
568
569
    /**
570
     * @param array $damageImageList
571
     *
572
     * @return $this
573
     */
574
	public function withDamageImageList(array $damageImageList)
575
	{
576
	    $this->data['DamageImageList'] = $damageImageList;
577
		foreach ($damageImageList as $depth1 => $depth1Value) {
578
			if(isset($depth1Value['ImageUrl'])){
579
				$this->options['form_params']['DamageImageList.' . ($depth1 + 1) . '.ImageUrl'] = $depth1Value['ImageUrl'];
580
			}
581
			if(isset($depth1Value['CreateTimeStamp'])){
582
				$this->options['form_params']['DamageImageList.' . ($depth1 + 1) . '.CreateTimeStamp'] = $depth1Value['CreateTimeStamp'];
583
			}
584
		}
585
586
		return $this;
587
    }
588
}
589
590
/**
591
 * @method string getJobId()
592
 * @method string getAsync()
593
 */
594
class GetAsyncJobResult extends Rpc
595
{
596
597
    /**
598
     * @param string $value
599
     *
600
     * @return $this
601
     */
602
    public function withJobId($value)
603
    {
604
        $this->data['JobId'] = $value;
605
        $this->options['form_params']['JobId'] = $value;
606
607
        return $this;
608
    }
609
610
    /**
611
     * @param string $value
612
     *
613
     * @return $this
614
     */
615
    public function withAsync($value)
616
    {
617
        $this->data['Async'] = $value;
618
        $this->options['form_params']['Async'] = $value;
619
620
        return $this;
621
    }
622
}
623
624
/**
625
 * @method string getVinCodeImage()
626
 * @method string getCarNumberImage()
627
 * @method string getTaskId()
628
 */
629
class GetVehicleRepairPlan extends Rpc
630
{
631
632
    /**
633
     * @param string $value
634
     *
635
     * @return $this
636
     */
637
    public function withVinCodeImage($value)
638
    {
639
        $this->data['VinCodeImage'] = $value;
640
        $this->options['form_params']['VinCodeImage'] = $value;
641
642
        return $this;
643
    }
644
645
    /**
646
     * @param string $value
647
     *
648
     * @return $this
649
     */
650
    public function withCarNumberImage($value)
651
    {
652
        $this->data['CarNumberImage'] = $value;
653
        $this->options['form_params']['CarNumberImage'] = $value;
654
655
        return $this;
656
    }
657
658
    /**
659
     * @param string $value
660
     *
661
     * @return $this
662
     */
663
    public function withTaskId($value)
664
    {
665
        $this->data['TaskId'] = $value;
666
        $this->options['form_params']['TaskId'] = $value;
667
668
        return $this;
669
    }
670
}
671
672
/**
673
 * @method string getImageURL()
674
 */
675
class RecognizeVehicleDamage extends Rpc
676
{
677
678
    /**
679
     * @param string $value
680
     *
681
     * @return $this
682
     */
683
    public function withImageURL($value)
684
    {
685
        $this->data['ImageURL'] = $value;
686
        $this->options['form_params']['ImageURL'] = $value;
687
688
        return $this;
689
    }
690
}
691
692
/**
693
 * @method string getImageURL()
694
 */
695
class RecognizeVehicleDashboard extends Rpc
696
{
697
698
    /**
699
     * @param string $value
700
     *
701
     * @return $this
702
     */
703
    public function withImageURL($value)
704
    {
705
        $this->data['ImageURL'] = $value;
706
        $this->options['form_params']['ImageURL'] = $value;
707
708
        return $this;
709
    }
710
}
711
712
/**
713
 * @method string getImageURL()
714
 */
715
class RecognizeVehicleParts extends Rpc
716
{
717
718
    /**
719
     * @param string $value
720
     *
721
     * @return $this
722
     */
723
    public function withImageURL($value)
724
    {
725
        $this->data['ImageURL'] = $value;
726
        $this->options['form_params']['ImageURL'] = $value;
727
728
        return $this;
729
    }
730
}
731