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 ( 6ee436...9481e8 )
by
unknown
12:31 queued 08:05
created

AddFace   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 66
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
eloc 16
c 1
b 0
f 0
dl 0
loc 66
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A withFaceId() 0 6 1
A withDbName() 0 6 1
A withExtraData() 0 6 1
A withImageUrl() 0 6 1
A withEntityId() 0 6 1
1
<?php
2
3
namespace AlibabaCloud\Facebody\V20191230;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method AddFace addFace(array $options = [])
9
 * @method BodyPosture bodyPosture(array $options = [])
10
 * @method CompareFace compareFace(array $options = [])
11
 * @method CreateFaceDb createFaceDb(array $options = [])
12
 * @method DeleteFace deleteFace(array $options = [])
13
 * @method DeleteFaceDb deleteFaceDb(array $options = [])
14
 * @method DetectBodyCount detectBodyCount(array $options = [])
15
 * @method DetectFace detectFace(array $options = [])
16
 * @method DetectLivingFace detectLivingFace(array $options = [])
17
 * @method DetectMask detectMask(array $options = [])
18
 * @method DetectPedestrian detectPedestrian(array $options = [])
19
 * @method EnhanceFace enhanceFace(array $options = [])
20
 * @method FaceBeauty faceBeauty(array $options = [])
21
 * @method FaceFilter faceFilter(array $options = [])
22
 * @method FaceMakeup faceMakeup(array $options = [])
23
 * @method FaceTidyup faceTidyup(array $options = [])
24
 * @method HandPosture handPosture(array $options = [])
25
 * @method ListFaceDbs listFaceDbs(array $options = [])
26
 * @method ListFaces listFaces(array $options = [])
27
 * @method RecognizeExpression recognizeExpression(array $options = [])
28
 * @method RecognizeFace recognizeFace(array $options = [])
29
 * @method RecognizePublicFace recognizePublicFace(array $options = [])
30
 * @method SearchFace searchFace(array $options = [])
31
 */
32
class FacebodyApiResolver extends ApiResolver
33
{
34
}
35
36
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
37
{
38
    /** @var string */
39
    public $product = 'facebody';
40
41
    /** @var string */
42
    public $version = '2019-12-30';
43
44
    /** @var string */
45
    public $method = 'POST';
46
47
    /** @var string */
48
    public $serviceCode = 'facebody';
49
}
50
51
/**
52
 * @method string getEntityId()
53
 * @method string getExtraData()
54
 * @method string getFaceId()
55
 * @method string getDbName()
56
 * @method string getImageUrl()
57
 */
58
class AddFace extends Rpc
59
{
60
61
    /**
62
     * @param string $value
63
     *
64
     * @return $this
65
     */
66
    public function withEntityId($value)
67
    {
68
        $this->data['EntityId'] = $value;
69
        $this->options['form_params']['EntityId'] = $value;
70
71
        return $this;
72
    }
73
74
    /**
75
     * @param string $value
76
     *
77
     * @return $this
78
     */
79
    public function withExtraData($value)
80
    {
81
        $this->data['ExtraData'] = $value;
82
        $this->options['form_params']['ExtraData'] = $value;
83
84
        return $this;
85
    }
86
87
    /**
88
     * @param string $value
89
     *
90
     * @return $this
91
     */
92
    public function withFaceId($value)
93
    {
94
        $this->data['FaceId'] = $value;
95
        $this->options['form_params']['FaceId'] = $value;
96
97
        return $this;
98
    }
99
100
    /**
101
     * @param string $value
102
     *
103
     * @return $this
104
     */
105
    public function withDbName($value)
106
    {
107
        $this->data['DbName'] = $value;
108
        $this->options['form_params']['DbName'] = $value;
109
110
        return $this;
111
    }
112
113
    /**
114
     * @param string $value
115
     *
116
     * @return $this
117
     */
118
    public function withImageUrl($value)
119
    {
120
        $this->data['ImageUrl'] = $value;
121
        $this->options['form_params']['ImageUrl'] = $value;
122
123
        return $this;
124
    }
125
}
126
127
/**
128
 * @method string getImageURL()
129
 */
130
class BodyPosture extends Rpc
131
{
132
133
    /**
134
     * @param string $value
135
     *
136
     * @return $this
137
     */
138
    public function withImageURL($value)
139
    {
140
        $this->data['ImageURL'] = $value;
141
        $this->options['form_params']['ImageURL'] = $value;
142
143
        return $this;
144
    }
145
}
146
147
/**
148
 * @method string getImageType()
149
 * @method string getImageURLB()
150
 * @method string getImageURLA()
151
 */
152
class CompareFace extends Rpc
153
{
154
155
    /**
156
     * @param string $value
157
     *
158
     * @return $this
159
     */
160
    public function withImageType($value)
161
    {
162
        $this->data['ImageType'] = $value;
163
        $this->options['form_params']['ImageType'] = $value;
164
165
        return $this;
166
    }
167
168
    /**
169
     * @param string $value
170
     *
171
     * @return $this
172
     */
173
    public function withImageURLB($value)
174
    {
175
        $this->data['ImageURLB'] = $value;
176
        $this->options['form_params']['ImageURLB'] = $value;
177
178
        return $this;
179
    }
180
181
    /**
182
     * @param string $value
183
     *
184
     * @return $this
185
     */
186
    public function withImageURLA($value)
187
    {
188
        $this->data['ImageURLA'] = $value;
189
        $this->options['form_params']['ImageURLA'] = $value;
190
191
        return $this;
192
    }
193
}
194
195
/**
196
 * @method string getName()
197
 */
198
class CreateFaceDb extends Rpc
199
{
200
201
    /**
202
     * @param string $value
203
     *
204
     * @return $this
205
     */
206
    public function withName($value)
207
    {
208
        $this->data['Name'] = $value;
209
        $this->options['form_params']['Name'] = $value;
210
211
        return $this;
212
    }
213
}
214
215
/**
216
 * @method string getFaceId()
217
 * @method string getDbName()
218
 */
219
class DeleteFace extends Rpc
220
{
221
222
    /**
223
     * @param string $value
224
     *
225
     * @return $this
226
     */
227
    public function withFaceId($value)
228
    {
229
        $this->data['FaceId'] = $value;
230
        $this->options['form_params']['FaceId'] = $value;
231
232
        return $this;
233
    }
234
235
    /**
236
     * @param string $value
237
     *
238
     * @return $this
239
     */
240
    public function withDbName($value)
241
    {
242
        $this->data['DbName'] = $value;
243
        $this->options['form_params']['DbName'] = $value;
244
245
        return $this;
246
    }
247
}
248
249
/**
250
 * @method string getName()
251
 */
252
class DeleteFaceDb extends Rpc
253
{
254
255
    /**
256
     * @param string $value
257
     *
258
     * @return $this
259
     */
260
    public function withName($value)
261
    {
262
        $this->data['Name'] = $value;
263
        $this->options['form_params']['Name'] = $value;
264
265
        return $this;
266
    }
267
}
268
269
/**
270
 * @method string getImageURL()
271
 */
272
class DetectBodyCount extends Rpc
273
{
274
275
    /**
276
     * @param string $value
277
     *
278
     * @return $this
279
     */
280
    public function withImageURL($value)
281
    {
282
        $this->data['ImageURL'] = $value;
283
        $this->options['form_params']['ImageURL'] = $value;
284
285
        return $this;
286
    }
287
}
288
289
/**
290
 * @method string getImageType()
291
 * @method string getImageURL()
292
 */
293
class DetectFace extends Rpc
294
{
295
296
    /**
297
     * @param string $value
298
     *
299
     * @return $this
300
     */
301
    public function withImageType($value)
302
    {
303
        $this->data['ImageType'] = $value;
304
        $this->options['form_params']['ImageType'] = $value;
305
306
        return $this;
307
    }
308
309
    /**
310
     * @param string $value
311
     *
312
     * @return $this
313
     */
314
    public function withImageURL($value)
315
    {
316
        $this->data['ImageURL'] = $value;
317
        $this->options['form_params']['ImageURL'] = $value;
318
319
        return $this;
320
    }
321
}
322
323
/**
324
 * @method array getTasks()
325
 */
326
class DetectLivingFace extends Rpc
327
{
328
329
    /**
330
     * @param array $tasks
331
     *
332
     * @return $this
333
     */
334
	public function withTasks(array $tasks)
335
	{
336
	    $this->data['Tasks'] = $tasks;
337
		foreach ($tasks as $depth1 => $depth1Value) {
338
			$this->options['form_params']['Tasks.' . ($depth1 + 1) . '.ImageURL'] = $depth1Value['ImageURL'];
339
		}
340
341
		return $this;
342
    }
343
}
344
345
/**
346
 * @method string getImageURL()
347
 */
348
class DetectMask extends Rpc
349
{
350
351
    /**
352
     * @param string $value
353
     *
354
     * @return $this
355
     */
356
    public function withImageURL($value)
357
    {
358
        $this->data['ImageURL'] = $value;
359
        $this->options['form_params']['ImageURL'] = $value;
360
361
        return $this;
362
    }
363
}
364
365
/**
366
 * @method string getImageURL()
367
 */
368
class DetectPedestrian extends Rpc
369
{
370
371
    /**
372
     * @param string $value
373
     *
374
     * @return $this
375
     */
376
    public function withImageURL($value)
377
    {
378
        $this->data['ImageURL'] = $value;
379
        $this->options['form_params']['ImageURL'] = $value;
380
381
        return $this;
382
    }
383
}
384
385
/**
386
 * @method string getImageURL()
387
 */
388
class EnhanceFace extends Rpc
389
{
390
391
    /**
392
     * @param string $value
393
     *
394
     * @return $this
395
     */
396
    public function withImageURL($value)
397
    {
398
        $this->data['ImageURL'] = $value;
399
        $this->options['form_params']['ImageURL'] = $value;
400
401
        return $this;
402
    }
403
}
404
405
/**
406
 * @method string getSharp()
407
 * @method string getWhite()
408
 * @method string getImageURL()
409
 * @method string getSmooth()
410
 */
411
class FaceBeauty extends Rpc
412
{
413
414
    /**
415
     * @param string $value
416
     *
417
     * @return $this
418
     */
419
    public function withSharp($value)
420
    {
421
        $this->data['Sharp'] = $value;
422
        $this->options['form_params']['Sharp'] = $value;
423
424
        return $this;
425
    }
426
427
    /**
428
     * @param string $value
429
     *
430
     * @return $this
431
     */
432
    public function withWhite($value)
433
    {
434
        $this->data['White'] = $value;
435
        $this->options['form_params']['White'] = $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
    /**
454
     * @param string $value
455
     *
456
     * @return $this
457
     */
458
    public function withSmooth($value)
459
    {
460
        $this->data['Smooth'] = $value;
461
        $this->options['form_params']['Smooth'] = $value;
462
463
        return $this;
464
    }
465
}
466
467
/**
468
 * @method string getStrength()
469
 * @method string getResourceType()
470
 * @method string getImageURL()
471
 */
472
class FaceFilter extends Rpc
473
{
474
475
    /**
476
     * @param string $value
477
     *
478
     * @return $this
479
     */
480
    public function withStrength($value)
481
    {
482
        $this->data['Strength'] = $value;
483
        $this->options['form_params']['Strength'] = $value;
484
485
        return $this;
486
    }
487
488
    /**
489
     * @param string $value
490
     *
491
     * @return $this
492
     */
493
    public function withResourceType($value)
494
    {
495
        $this->data['ResourceType'] = $value;
496
        $this->options['form_params']['ResourceType'] = $value;
497
498
        return $this;
499
    }
500
501
    /**
502
     * @param string $value
503
     *
504
     * @return $this
505
     */
506
    public function withImageURL($value)
507
    {
508
        $this->data['ImageURL'] = $value;
509
        $this->options['form_params']['ImageURL'] = $value;
510
511
        return $this;
512
    }
513
}
514
515
/**
516
 * @method string getStrength()
517
 * @method string getMakeupType()
518
 * @method string getResourceType()
519
 * @method string getImageURL()
520
 */
521
class FaceMakeup extends Rpc
522
{
523
524
    /**
525
     * @param string $value
526
     *
527
     * @return $this
528
     */
529
    public function withStrength($value)
530
    {
531
        $this->data['Strength'] = $value;
532
        $this->options['form_params']['Strength'] = $value;
533
534
        return $this;
535
    }
536
537
    /**
538
     * @param string $value
539
     *
540
     * @return $this
541
     */
542
    public function withMakeupType($value)
543
    {
544
        $this->data['MakeupType'] = $value;
545
        $this->options['form_params']['MakeupType'] = $value;
546
547
        return $this;
548
    }
549
550
    /**
551
     * @param string $value
552
     *
553
     * @return $this
554
     */
555
    public function withResourceType($value)
556
    {
557
        $this->data['ResourceType'] = $value;
558
        $this->options['form_params']['ResourceType'] = $value;
559
560
        return $this;
561
    }
562
563
    /**
564
     * @param string $value
565
     *
566
     * @return $this
567
     */
568
    public function withImageURL($value)
569
    {
570
        $this->data['ImageURL'] = $value;
571
        $this->options['form_params']['ImageURL'] = $value;
572
573
        return $this;
574
    }
575
}
576
577
/**
578
 * @method string getShapeType()
579
 * @method string getStrength()
580
 * @method string getImageURL()
581
 */
582
class FaceTidyup extends Rpc
583
{
584
585
    /**
586
     * @param string $value
587
     *
588
     * @return $this
589
     */
590
    public function withShapeType($value)
591
    {
592
        $this->data['ShapeType'] = $value;
593
        $this->options['form_params']['ShapeType'] = $value;
594
595
        return $this;
596
    }
597
598
    /**
599
     * @param string $value
600
     *
601
     * @return $this
602
     */
603
    public function withStrength($value)
604
    {
605
        $this->data['Strength'] = $value;
606
        $this->options['form_params']['Strength'] = $value;
607
608
        return $this;
609
    }
610
611
    /**
612
     * @param string $value
613
     *
614
     * @return $this
615
     */
616
    public function withImageURL($value)
617
    {
618
        $this->data['ImageURL'] = $value;
619
        $this->options['form_params']['ImageURL'] = $value;
620
621
        return $this;
622
    }
623
}
624
625
/**
626
 * @method string getImageURL()
627
 */
628
class HandPosture extends Rpc
629
{
630
631
    /**
632
     * @param string $value
633
     *
634
     * @return $this
635
     */
636
    public function withImageURL($value)
637
    {
638
        $this->data['ImageURL'] = $value;
639
        $this->options['form_params']['ImageURL'] = $value;
640
641
        return $this;
642
    }
643
}
644
645
class ListFaceDbs extends Rpc
646
{
647
}
648
649
/**
650
 * @method string getFromScrollId()
651
 * @method string getDbName()
652
 */
653
class ListFaces extends Rpc
654
{
655
656
    /**
657
     * @param string $value
658
     *
659
     * @return $this
660
     */
661
    public function withFromScrollId($value)
662
    {
663
        $this->data['FromScrollId'] = $value;
664
        $this->options['form_params']['FromScrollId'] = $value;
665
666
        return $this;
667
    }
668
669
    /**
670
     * @param string $value
671
     *
672
     * @return $this
673
     */
674
    public function withDbName($value)
675
    {
676
        $this->data['DbName'] = $value;
677
        $this->options['form_params']['DbName'] = $value;
678
679
        return $this;
680
    }
681
}
682
683
/**
684
 * @method string getImageURL()
685
 */
686
class RecognizeExpression extends Rpc
687
{
688
689
    /**
690
     * @param string $value
691
     *
692
     * @return $this
693
     */
694
    public function withImageURL($value)
695
    {
696
        $this->data['ImageURL'] = $value;
697
        $this->options['form_params']['ImageURL'] = $value;
698
699
        return $this;
700
    }
701
}
702
703
/**
704
 * @method string getImageType()
705
 * @method string getImageURL()
706
 */
707
class RecognizeFace extends Rpc
708
{
709
710
    /**
711
     * @param string $value
712
     *
713
     * @return $this
714
     */
715
    public function withImageType($value)
716
    {
717
        $this->data['ImageType'] = $value;
718
        $this->options['form_params']['ImageType'] = $value;
719
720
        return $this;
721
    }
722
723
    /**
724
     * @param string $value
725
     *
726
     * @return $this
727
     */
728
    public function withImageURL($value)
729
    {
730
        $this->data['ImageURL'] = $value;
731
        $this->options['form_params']['ImageURL'] = $value;
732
733
        return $this;
734
    }
735
}
736
737
/**
738
 * @method array getTask()
739
 */
740
class RecognizePublicFace extends Rpc
741
{
742
743
    /**
744
     * @param array $task
745
     *
746
     * @return $this
747
     */
748
	public function withTask(array $task)
749
	{
750
	    $this->data['Task'] = $task;
751
		foreach ($task as $depth1 => $depth1Value) {
752
			$this->options['form_params']['Task.' . ($depth1 + 1) . '.ImageURL'] = $depth1Value['ImageURL'];
753
		}
754
755
		return $this;
756
    }
757
}
758
759
/**
760
 * @method string getDbName()
761
 * @method string getImageUrl()
762
 * @method string getLimit()
763
 */
764
class SearchFace extends Rpc
765
{
766
767
    /**
768
     * @param string $value
769
     *
770
     * @return $this
771
     */
772
    public function withDbName($value)
773
    {
774
        $this->data['DbName'] = $value;
775
        $this->options['form_params']['DbName'] = $value;
776
777
        return $this;
778
    }
779
780
    /**
781
     * @param string $value
782
     *
783
     * @return $this
784
     */
785
    public function withImageUrl($value)
786
    {
787
        $this->data['ImageUrl'] = $value;
788
        $this->options['form_params']['ImageUrl'] = $value;
789
790
        return $this;
791
    }
792
793
    /**
794
     * @param string $value
795
     *
796
     * @return $this
797
     */
798
    public function withLimit($value)
799
    {
800
        $this->data['Limit'] = $value;
801
        $this->options['form_params']['Limit'] = $value;
802
803
        return $this;
804
    }
805
}
806