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 ( b18e87...816e6d )
by
unknown
09:50 queued 03:40
created

DetectCardScreenshot   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

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