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 ( 1840fd...78e55c )
by
unknown
07:35
created

RecognizeVideoCharacter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 7
dl 0
loc 27
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A withVideoURL() 0 6 1
A withAsync() 0 6 1
1
<?php
2
3
namespace AlibabaCloud\Ocr\V20191230;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method DetectCardScreenshot detectCardScreenshot(array $options = [])
9
 * @method GetAsyncJobResult getAsyncJobResult(array $options = [])
10
 * @method RecognizeAccountPage recognizeAccountPage(array $options = [])
11
 * @method RecognizeBankCard recognizeBankCard(array $options = [])
12
 * @method RecognizeBusinessCard recognizeBusinessCard(array $options = [])
13
 * @method RecognizeBusinessLicense recognizeBusinessLicense(array $options = [])
14
 * @method RecognizeCharacter recognizeCharacter(array $options = [])
15
 * @method RecognizeChinapassport recognizeChinapassport(array $options = [])
16
 * @method RecognizeDriverLicense recognizeDriverLicense(array $options = [])
17
 * @method RecognizeDrivingLicense recognizeDrivingLicense(array $options = [])
18
 * @method RecognizeIdentityCard recognizeIdentityCard(array $options = [])
19
 * @method RecognizeLicensePlate recognizeLicensePlate(array $options = [])
20
 * @method RecognizePassportMRZ recognizePassportMRZ(array $options = [])
21
 * @method RecognizePDF recognizePDF(array $options = [])
22
 * @method RecognizePoiName recognizePoiName(array $options = [])
23
 * @method RecognizeQrCode recognizeQrCode(array $options = [])
24
 * @method RecognizeQuotaInvoice recognizeQuotaInvoice(array $options = [])
25
 * @method RecognizeStamp recognizeStamp(array $options = [])
26
 * @method RecognizeTable recognizeTable(array $options = [])
27
 * @method RecognizeTakeoutOrder recognizeTakeoutOrder(array $options = [])
28
 * @method RecognizeTaxiInvoice recognizeTaxiInvoice(array $options = [])
29
 * @method RecognizeTicketInvoice recognizeTicketInvoice(array $options = [])
30
 * @method RecognizeTrainTicket recognizeTrainTicket(array $options = [])
31
 * @method RecognizeVATInvoice recognizeVATInvoice(array $options = [])
32
 * @method RecognizeVerificationcode recognizeVerificationcode(array $options = [])
33
 * @method RecognizeVideoCharacter recognizeVideoCharacter(array $options = [])
34
 * @method RecognizeVINCode recognizeVINCode(array $options = [])
35
 * @method TrimDocument trimDocument(array $options = [])
36
 */
37
class OcrApiResolver extends ApiResolver
38
{
39
}
40
41
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
42
{
43
    /** @var string */
44
    public $product = 'ocr';
45
46
    /** @var string */
47
    public $version = '2019-12-30';
48
49
    /** @var string */
50
    public $method = 'POST';
51
52
    /** @var string */
53
    public $serviceCode = 'ocr';
54
}
55
56
/**
57
 * @method string getImageURL()
58
 */
59
class DetectCardScreenshot extends Rpc
60
{
61
62
    /**
63
     * @param string $value
64
     *
65
     * @return $this
66
     */
67
    public function withImageURL($value)
68
    {
69
        $this->data['ImageURL'] = $value;
70
        $this->options['form_params']['ImageURL'] = $value;
71
72
        return $this;
73
    }
74
}
75
76
/**
77
 * @method string getAsync()
78
 * @method string getJobId()
79
 */
80
class GetAsyncJobResult extends Rpc
81
{
82
83
    /**
84
     * @param string $value
85
     *
86
     * @return $this
87
     */
88
    public function withAsync($value)
89
    {
90
        $this->data['Async'] = $value;
91
        $this->options['form_params']['Async'] = $value;
92
93
        return $this;
94
    }
95
96
    /**
97
     * @param string $value
98
     *
99
     * @return $this
100
     */
101
    public function withJobId($value)
102
    {
103
        $this->data['JobId'] = $value;
104
        $this->options['form_params']['JobId'] = $value;
105
106
        return $this;
107
    }
108
}
109
110
/**
111
 * @method string getImageType()
112
 * @method string getImageURL()
113
 */
114
class RecognizeAccountPage extends Rpc
115
{
116
117
    /**
118
     * @param string $value
119
     *
120
     * @return $this
121
     */
122
    public function withImageType($value)
123
    {
124
        $this->data['ImageType'] = $value;
125
        $this->options['form_params']['ImageType'] = $value;
126
127
        return $this;
128
    }
129
130
    /**
131
     * @param string $value
132
     *
133
     * @return $this
134
     */
135
    public function withImageURL($value)
136
    {
137
        $this->data['ImageURL'] = $value;
138
        $this->options['form_params']['ImageURL'] = $value;
139
140
        return $this;
141
    }
142
}
143
144
/**
145
 * @method string getImageType()
146
 * @method string getImageURL()
147
 */
148
class RecognizeBankCard extends Rpc
149
{
150
151
    /**
152
     * @param string $value
153
     *
154
     * @return $this
155
     */
156
    public function withImageType($value)
157
    {
158
        $this->data['ImageType'] = $value;
159
        $this->options['form_params']['ImageType'] = $value;
160
161
        return $this;
162
    }
163
164
    /**
165
     * @param string $value
166
     *
167
     * @return $this
168
     */
169
    public function withImageURL($value)
170
    {
171
        $this->data['ImageURL'] = $value;
172
        $this->options['form_params']['ImageURL'] = $value;
173
174
        return $this;
175
    }
176
}
177
178
/**
179
 * @method string getImageType()
180
 * @method string getImageURL()
181
 */
182
class RecognizeBusinessCard extends Rpc
183
{
184
185
    /**
186
     * @param string $value
187
     *
188
     * @return $this
189
     */
190
    public function withImageType($value)
191
    {
192
        $this->data['ImageType'] = $value;
193
        $this->options['form_params']['ImageType'] = $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 getImageType()
214
 * @method string getImageURL()
215
 */
216
class RecognizeBusinessLicense extends Rpc
217
{
218
219
    /**
220
     * @param string $value
221
     *
222
     * @return $this
223
     */
224
    public function withImageType($value)
225
    {
226
        $this->data['ImageType'] = $value;
227
        $this->options['form_params']['ImageType'] = $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 getFormatResultToJson()
248
 * @method $this withFormatResultToJson($value)
249
 * @method string getMinHeight()
250
 * @method string getOssFile()
251
 * @method $this withOssFile($value)
252
 * @method string getImageType()
253
 * @method string getRequestProxyBy()
254
 * @method $this withRequestProxyBy($value)
255
 * @method string getOutputProbability()
256
 * @method string getImageURL()
257
 */
258
class RecognizeCharacter extends Rpc
259
{
260
261
    /**
262
     * @param string $value
263
     *
264
     * @return $this
265
     */
266
    public function withMinHeight($value)
267
    {
268
        $this->data['MinHeight'] = $value;
269
        $this->options['form_params']['MinHeight'] = $value;
270
271
        return $this;
272
    }
273
274
    /**
275
     * @param string $value
276
     *
277
     * @return $this
278
     */
279
    public function withImageType($value)
280
    {
281
        $this->data['ImageType'] = $value;
282
        $this->options['form_params']['ImageType'] = $value;
283
284
        return $this;
285
    }
286
287
    /**
288
     * @param string $value
289
     *
290
     * @return $this
291
     */
292
    public function withOutputProbability($value)
293
    {
294
        $this->data['OutputProbability'] = $value;
295
        $this->options['form_params']['OutputProbability'] = $value;
296
297
        return $this;
298
    }
299
300
    /**
301
     * @param string $value
302
     *
303
     * @return $this
304
     */
305
    public function withImageURL($value)
306
    {
307
        $this->data['ImageURL'] = $value;
308
        $this->options['form_params']['ImageURL'] = $value;
309
310
        return $this;
311
    }
312
}
313
314
/**
315
 * @method string getImageURL()
316
 */
317
class RecognizeChinapassport extends Rpc
318
{
319
320
    /**
321
     * @param string $value
322
     *
323
     * @return $this
324
     */
325
    public function withImageURL($value)
326
    {
327
        $this->data['ImageURL'] = $value;
328
        $this->options['form_params']['ImageURL'] = $value;
329
330
        return $this;
331
    }
332
}
333
334
/**
335
 * @method string getImageType()
336
 * @method string getSide()
337
 * @method string getImageURL()
338
 */
339
class RecognizeDriverLicense extends Rpc
340
{
341
342
    /**
343
     * @param string $value
344
     *
345
     * @return $this
346
     */
347
    public function withImageType($value)
348
    {
349
        $this->data['ImageType'] = $value;
350
        $this->options['form_params']['ImageType'] = $value;
351
352
        return $this;
353
    }
354
355
    /**
356
     * @param string $value
357
     *
358
     * @return $this
359
     */
360
    public function withSide($value)
361
    {
362
        $this->data['Side'] = $value;
363
        $this->options['form_params']['Side'] = $value;
364
365
        return $this;
366
    }
367
368
    /**
369
     * @param string $value
370
     *
371
     * @return $this
372
     */
373
    public function withImageURL($value)
374
    {
375
        $this->data['ImageURL'] = $value;
376
        $this->options['form_params']['ImageURL'] = $value;
377
378
        return $this;
379
    }
380
}
381
382
/**
383
 * @method string getImageType()
384
 * @method string getSide()
385
 * @method string getImageURL()
386
 */
387
class RecognizeDrivingLicense extends Rpc
388
{
389
390
    /**
391
     * @param string $value
392
     *
393
     * @return $this
394
     */
395
    public function withImageType($value)
396
    {
397
        $this->data['ImageType'] = $value;
398
        $this->options['form_params']['ImageType'] = $value;
399
400
        return $this;
401
    }
402
403
    /**
404
     * @param string $value
405
     *
406
     * @return $this
407
     */
408
    public function withSide($value)
409
    {
410
        $this->data['Side'] = $value;
411
        $this->options['form_params']['Side'] = $value;
412
413
        return $this;
414
    }
415
416
    /**
417
     * @param string $value
418
     *
419
     * @return $this
420
     */
421
    public function withImageURL($value)
422
    {
423
        $this->data['ImageURL'] = $value;
424
        $this->options['form_params']['ImageURL'] = $value;
425
426
        return $this;
427
    }
428
}
429
430
/**
431
 * @method string getImageType()
432
 * @method string getSide()
433
 * @method string getImageURL()
434
 */
435
class RecognizeIdentityCard extends Rpc
436
{
437
438
    /**
439
     * @param string $value
440
     *
441
     * @return $this
442
     */
443
    public function withImageType($value)
444
    {
445
        $this->data['ImageType'] = $value;
446
        $this->options['form_params']['ImageType'] = $value;
447
448
        return $this;
449
    }
450
451
    /**
452
     * @param string $value
453
     *
454
     * @return $this
455
     */
456
    public function withSide($value)
457
    {
458
        $this->data['Side'] = $value;
459
        $this->options['form_params']['Side'] = $value;
460
461
        return $this;
462
    }
463
464
    /**
465
     * @param string $value
466
     *
467
     * @return $this
468
     */
469
    public function withImageURL($value)
470
    {
471
        $this->data['ImageURL'] = $value;
472
        $this->options['form_params']['ImageURL'] = $value;
473
474
        return $this;
475
    }
476
}
477
478
/**
479
 * @method string getImageType()
480
 * @method string getImageURL()
481
 */
482
class RecognizeLicensePlate extends Rpc
483
{
484
485
    /**
486
     * @param string $value
487
     *
488
     * @return $this
489
     */
490
    public function withImageType($value)
491
    {
492
        $this->data['ImageType'] = $value;
493
        $this->options['form_params']['ImageType'] = $value;
494
495
        return $this;
496
    }
497
498
    /**
499
     * @param string $value
500
     *
501
     * @return $this
502
     */
503
    public function withImageURL($value)
504
    {
505
        $this->data['ImageURL'] = $value;
506
        $this->options['form_params']['ImageURL'] = $value;
507
508
        return $this;
509
    }
510
}
511
512
/**
513
 * @method string getImageURL()
514
 */
515
class RecognizePassportMRZ extends Rpc
516
{
517
518
    /**
519
     * @param string $value
520
     *
521
     * @return $this
522
     */
523
    public function withImageURL($value)
524
    {
525
        $this->data['ImageURL'] = $value;
526
        $this->options['form_params']['ImageURL'] = $value;
527
528
        return $this;
529
    }
530
}
531
532
/**
533
 * @method string getFileURL()
534
 */
535
class RecognizePDF extends Rpc
536
{
537
538
    /**
539
     * @param string $value
540
     *
541
     * @return $this
542
     */
543
    public function withFileURL($value)
544
    {
545
        $this->data['FileURL'] = $value;
546
        $this->options['form_params']['FileURL'] = $value;
547
548
        return $this;
549
    }
550
}
551
552
/**
553
 * @method string getImageURL()
554
 */
555
class RecognizePoiName extends Rpc
556
{
557
558
    /**
559
     * @param string $value
560
     *
561
     * @return $this
562
     */
563
    public function withImageURL($value)
564
    {
565
        $this->data['ImageURL'] = $value;
566
        $this->options['form_params']['ImageURL'] = $value;
567
568
        return $this;
569
    }
570
}
571
572
/**
573
 * @method array getTasks()
574
 */
575
class RecognizeQrCode extends Rpc
576
{
577
578
    /**
579
     * @param array $tasks
580
     *
581
     * @return $this
582
     */
583
	public function withTasks(array $tasks)
584
	{
585
	    $this->data['Tasks'] = $tasks;
586
		foreach ($tasks as $depth1 => $depth1Value) {
587
			if(isset($depth1Value['ImageURL'])){
588
				$this->options['form_params']['Tasks.' . ($depth1 + 1) . '.ImageURL'] = $depth1Value['ImageURL'];
589
			}
590
		}
591
592
		return $this;
593
    }
594
}
595
596
/**
597
 * @method string getImageURL()
598
 */
599
class RecognizeQuotaInvoice extends Rpc
600
{
601
602
    /**
603
     * @param string $value
604
     *
605
     * @return $this
606
     */
607
    public function withImageURL($value)
608
    {
609
        $this->data['ImageURL'] = $value;
610
        $this->options['form_params']['ImageURL'] = $value;
611
612
        return $this;
613
    }
614
}
615
616
/**
617
 * @method string getImageType()
618
 * @method string getImageURL()
619
 */
620
class RecognizeStamp extends Rpc
621
{
622
623
    /**
624
     * @param string $value
625
     *
626
     * @return $this
627
     */
628
    public function withImageType($value)
629
    {
630
        $this->data['ImageType'] = $value;
631
        $this->options['form_params']['ImageType'] = $value;
632
633
        return $this;
634
    }
635
636
    /**
637
     * @param string $value
638
     *
639
     * @return $this
640
     */
641
    public function withImageURL($value)
642
    {
643
        $this->data['ImageURL'] = $value;
644
        $this->options['form_params']['ImageURL'] = $value;
645
646
        return $this;
647
    }
648
}
649
650
/**
651
 * @method string getImageType()
652
 * @method string getUseFinanceModel()
653
 * @method string getSkipDetection()
654
 * @method string getImageURL()
655
 * @method string getOutputFormat()
656
 * @method string getAssureDirection()
657
 * @method string getHasLine()
658
 */
659
class RecognizeTable extends Rpc
660
{
661
662
    /**
663
     * @param string $value
664
     *
665
     * @return $this
666
     */
667
    public function withImageType($value)
668
    {
669
        $this->data['ImageType'] = $value;
670
        $this->options['form_params']['ImageType'] = $value;
671
672
        return $this;
673
    }
674
675
    /**
676
     * @param string $value
677
     *
678
     * @return $this
679
     */
680
    public function withUseFinanceModel($value)
681
    {
682
        $this->data['UseFinanceModel'] = $value;
683
        $this->options['form_params']['UseFinanceModel'] = $value;
684
685
        return $this;
686
    }
687
688
    /**
689
     * @param string $value
690
     *
691
     * @return $this
692
     */
693
    public function withSkipDetection($value)
694
    {
695
        $this->data['SkipDetection'] = $value;
696
        $this->options['form_params']['SkipDetection'] = $value;
697
698
        return $this;
699
    }
700
701
    /**
702
     * @param string $value
703
     *
704
     * @return $this
705
     */
706
    public function withImageURL($value)
707
    {
708
        $this->data['ImageURL'] = $value;
709
        $this->options['form_params']['ImageURL'] = $value;
710
711
        return $this;
712
    }
713
714
    /**
715
     * @param string $value
716
     *
717
     * @return $this
718
     */
719
    public function withOutputFormat($value)
720
    {
721
        $this->data['OutputFormat'] = $value;
722
        $this->options['form_params']['OutputFormat'] = $value;
723
724
        return $this;
725
    }
726
727
    /**
728
     * @param string $value
729
     *
730
     * @return $this
731
     */
732
    public function withAssureDirection($value)
733
    {
734
        $this->data['AssureDirection'] = $value;
735
        $this->options['form_params']['AssureDirection'] = $value;
736
737
        return $this;
738
    }
739
740
    /**
741
     * @param string $value
742
     *
743
     * @return $this
744
     */
745
    public function withHasLine($value)
746
    {
747
        $this->data['HasLine'] = $value;
748
        $this->options['form_params']['HasLine'] = $value;
749
750
        return $this;
751
    }
752
}
753
754
/**
755
 * @method string getImageURL()
756
 */
757
class RecognizeTakeoutOrder extends Rpc
758
{
759
760
    /**
761
     * @param string $value
762
     *
763
     * @return $this
764
     */
765
    public function withImageURL($value)
766
    {
767
        $this->data['ImageURL'] = $value;
768
        $this->options['form_params']['ImageURL'] = $value;
769
770
        return $this;
771
    }
772
}
773
774
/**
775
 * @method string getImageType()
776
 * @method string getImageURL()
777
 */
778
class RecognizeTaxiInvoice extends Rpc
779
{
780
781
    /**
782
     * @param string $value
783
     *
784
     * @return $this
785
     */
786
    public function withImageType($value)
787
    {
788
        $this->data['ImageType'] = $value;
789
        $this->options['form_params']['ImageType'] = $value;
790
791
        return $this;
792
    }
793
794
    /**
795
     * @param string $value
796
     *
797
     * @return $this
798
     */
799
    public function withImageURL($value)
800
    {
801
        $this->data['ImageURL'] = $value;
802
        $this->options['form_params']['ImageURL'] = $value;
803
804
        return $this;
805
    }
806
}
807
808
/**
809
 * @method string getImageURL()
810
 */
811
class RecognizeTicketInvoice extends Rpc
812
{
813
814
    /**
815
     * @param string $value
816
     *
817
     * @return $this
818
     */
819
    public function withImageURL($value)
820
    {
821
        $this->data['ImageURL'] = $value;
822
        $this->options['form_params']['ImageURL'] = $value;
823
824
        return $this;
825
    }
826
}
827
828
/**
829
 * @method string getImageType()
830
 * @method string getImageURL()
831
 */
832
class RecognizeTrainTicket extends Rpc
833
{
834
835
    /**
836
     * @param string $value
837
     *
838
     * @return $this
839
     */
840
    public function withImageType($value)
841
    {
842
        $this->data['ImageType'] = $value;
843
        $this->options['form_params']['ImageType'] = $value;
844
845
        return $this;
846
    }
847
848
    /**
849
     * @param string $value
850
     *
851
     * @return $this
852
     */
853
    public function withImageURL($value)
854
    {
855
        $this->data['ImageURL'] = $value;
856
        $this->options['form_params']['ImageURL'] = $value;
857
858
        return $this;
859
    }
860
}
861
862
/**
863
 * @method string getFileType()
864
 * @method string getFileURL()
865
 */
866
class RecognizeVATInvoice extends Rpc
867
{
868
869
    /**
870
     * @param string $value
871
     *
872
     * @return $this
873
     */
874
    public function withFileType($value)
875
    {
876
        $this->data['FileType'] = $value;
877
        $this->options['form_params']['FileType'] = $value;
878
879
        return $this;
880
    }
881
882
    /**
883
     * @param string $value
884
     *
885
     * @return $this
886
     */
887
    public function withFileURL($value)
888
    {
889
        $this->data['FileURL'] = $value;
890
        $this->options['form_params']['FileURL'] = $value;
891
892
        return $this;
893
    }
894
}
895
896
/**
897
 * @method string getImageURL()
898
 */
899
class RecognizeVerificationcode extends Rpc
900
{
901
902
    /**
903
     * @param string $value
904
     *
905
     * @return $this
906
     */
907
    public function withImageURL($value)
908
    {
909
        $this->data['ImageURL'] = $value;
910
        $this->options['form_params']['ImageURL'] = $value;
911
912
        return $this;
913
    }
914
}
915
916
/**
917
 * @method string getFormatResultToJson()
918
 * @method $this withFormatResultToJson($value)
919
 * @method string getOssFile()
920
 * @method $this withOssFile($value)
921
 * @method string getRequestProxyBy()
922
 * @method $this withRequestProxyBy($value)
923
 * @method string getAsync()
924
 * @method string getVideoURL()
925
 */
926
class RecognizeVideoCharacter extends Rpc
927
{
928
929
    /**
930
     * @param string $value
931
     *
932
     * @return $this
933
     */
934
    public function withAsync($value)
935
    {
936
        $this->data['Async'] = $value;
937
        $this->options['form_params']['Async'] = $value;
938
939
        return $this;
940
    }
941
942
    /**
943
     * @param string $value
944
     *
945
     * @return $this
946
     */
947
    public function withVideoURL($value)
948
    {
949
        $this->data['VideoURL'] = $value;
950
        $this->options['form_params']['VideoURL'] = $value;
951
952
        return $this;
953
    }
954
}
955
956
/**
957
 * @method string getImageType()
958
 * @method $this withImageType($value)
959
 * @method string getImageURL()
960
 * @method $this withImageURL($value)
961
 */
962
class RecognizeVINCode extends Rpc
963
{
964
}
965
966
/**
967
 * @method string getFileType()
968
 * @method string getAsync()
969
 * @method string getFileURL()
970
 * @method string getOutputType()
971
 */
972
class TrimDocument extends Rpc
973
{
974
975
    /**
976
     * @param string $value
977
     *
978
     * @return $this
979
     */
980
    public function withFileType($value)
981
    {
982
        $this->data['FileType'] = $value;
983
        $this->options['form_params']['FileType'] = $value;
984
985
        return $this;
986
    }
987
988
    /**
989
     * @param string $value
990
     *
991
     * @return $this
992
     */
993
    public function withAsync($value)
994
    {
995
        $this->data['Async'] = $value;
996
        $this->options['form_params']['Async'] = $value;
997
998
        return $this;
999
    }
1000
1001
    /**
1002
     * @param string $value
1003
     *
1004
     * @return $this
1005
     */
1006
    public function withFileURL($value)
1007
    {
1008
        $this->data['FileURL'] = $value;
1009
        $this->options['form_params']['FileURL'] = $value;
1010
1011
        return $this;
1012
    }
1013
1014
    /**
1015
     * @param string $value
1016
     *
1017
     * @return $this
1018
     */
1019
    public function withOutputType($value)
1020
    {
1021
        $this->data['OutputType'] = $value;
1022
        $this->options['form_params']['OutputType'] = $value;
1023
1024
        return $this;
1025
    }
1026
}
1027