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 ( 089a18...01acbe )
by
unknown
07:20
created

RecognizeRussiaIdentityCard::withImageUrl()   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\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 getJobId()
78
 * @method string getAsync()
79
 */
80
class GetAsyncJobResult extends Rpc
81
{
82
83
    /**
84
     * @param string $value
85
     *
86
     * @return $this
87
     */
88
    public function withJobId($value)
89
    {
90
        $this->data['JobId'] = $value;
91
        $this->options['form_params']['JobId'] = $value;
92
93
        return $this;
94
    }
95
96
    /**
97
     * @param string $value
98
     *
99
     * @return $this
100
     */
101
    public function withAsync($value)
102
    {
103
        $this->data['Async'] = $value;
104
        $this->options['form_params']['Async'] = $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 getMinHeight()
248
 * @method string getImageType()
249
 * @method string getOutputProbability()
250
 * @method string getImageURL()
251
 */
252
class RecognizeCharacter extends Rpc
253
{
254
255
    /**
256
     * @param string $value
257
     *
258
     * @return $this
259
     */
260
    public function withMinHeight($value)
261
    {
262
        $this->data['MinHeight'] = $value;
263
        $this->options['form_params']['MinHeight'] = $value;
264
265
        return $this;
266
    }
267
268
    /**
269
     * @param string $value
270
     *
271
     * @return $this
272
     */
273
    public function withImageType($value)
274
    {
275
        $this->data['ImageType'] = $value;
276
        $this->options['form_params']['ImageType'] = $value;
277
278
        return $this;
279
    }
280
281
    /**
282
     * @param string $value
283
     *
284
     * @return $this
285
     */
286
    public function withOutputProbability($value)
287
    {
288
        $this->data['OutputProbability'] = $value;
289
        $this->options['form_params']['OutputProbability'] = $value;
290
291
        return $this;
292
    }
293
294
    /**
295
     * @param string $value
296
     *
297
     * @return $this
298
     */
299
    public function withImageURL($value)
300
    {
301
        $this->data['ImageURL'] = $value;
302
        $this->options['form_params']['ImageURL'] = $value;
303
304
        return $this;
305
    }
306
}
307
308
/**
309
 * @method string getImageURL()
310
 */
311
class RecognizeChinapassport extends Rpc
312
{
313
314
    /**
315
     * @param string $value
316
     *
317
     * @return $this
318
     */
319
    public function withImageURL($value)
320
    {
321
        $this->data['ImageURL'] = $value;
322
        $this->options['form_params']['ImageURL'] = $value;
323
324
        return $this;
325
    }
326
}
327
328
/**
329
 * @method string getImageType()
330
 * @method string getSide()
331
 * @method string getImageURL()
332
 */
333
class RecognizeDriverLicense extends Rpc
334
{
335
336
    /**
337
     * @param string $value
338
     *
339
     * @return $this
340
     */
341
    public function withImageType($value)
342
    {
343
        $this->data['ImageType'] = $value;
344
        $this->options['form_params']['ImageType'] = $value;
345
346
        return $this;
347
    }
348
349
    /**
350
     * @param string $value
351
     *
352
     * @return $this
353
     */
354
    public function withSide($value)
355
    {
356
        $this->data['Side'] = $value;
357
        $this->options['form_params']['Side'] = $value;
358
359
        return $this;
360
    }
361
362
    /**
363
     * @param string $value
364
     *
365
     * @return $this
366
     */
367
    public function withImageURL($value)
368
    {
369
        $this->data['ImageURL'] = $value;
370
        $this->options['form_params']['ImageURL'] = $value;
371
372
        return $this;
373
    }
374
}
375
376
/**
377
 * @method string getImageType()
378
 * @method string getSide()
379
 * @method string getImageURL()
380
 */
381
class RecognizeDrivingLicense extends Rpc
382
{
383
384
    /**
385
     * @param string $value
386
     *
387
     * @return $this
388
     */
389
    public function withImageType($value)
390
    {
391
        $this->data['ImageType'] = $value;
392
        $this->options['form_params']['ImageType'] = $value;
393
394
        return $this;
395
    }
396
397
    /**
398
     * @param string $value
399
     *
400
     * @return $this
401
     */
402
    public function withSide($value)
403
    {
404
        $this->data['Side'] = $value;
405
        $this->options['form_params']['Side'] = $value;
406
407
        return $this;
408
    }
409
410
    /**
411
     * @param string $value
412
     *
413
     * @return $this
414
     */
415
    public function withImageURL($value)
416
    {
417
        $this->data['ImageURL'] = $value;
418
        $this->options['form_params']['ImageURL'] = $value;
419
420
        return $this;
421
    }
422
}
423
424
/**
425
 * @method string getImageType()
426
 * @method string getSide()
427
 * @method string getImageURL()
428
 */
429
class RecognizeIdentityCard extends Rpc
430
{
431
432
    /**
433
     * @param string $value
434
     *
435
     * @return $this
436
     */
437
    public function withImageType($value)
438
    {
439
        $this->data['ImageType'] = $value;
440
        $this->options['form_params']['ImageType'] = $value;
441
442
        return $this;
443
    }
444
445
    /**
446
     * @param string $value
447
     *
448
     * @return $this
449
     */
450
    public function withSide($value)
451
    {
452
        $this->data['Side'] = $value;
453
        $this->options['form_params']['Side'] = $value;
454
455
        return $this;
456
    }
457
458
    /**
459
     * @param string $value
460
     *
461
     * @return $this
462
     */
463
    public function withImageURL($value)
464
    {
465
        $this->data['ImageURL'] = $value;
466
        $this->options['form_params']['ImageURL'] = $value;
467
468
        return $this;
469
    }
470
}
471
472
/**
473
 * @method string getImageType()
474
 * @method string getImageURL()
475
 */
476
class RecognizeLicensePlate extends Rpc
477
{
478
479
    /**
480
     * @param string $value
481
     *
482
     * @return $this
483
     */
484
    public function withImageType($value)
485
    {
486
        $this->data['ImageType'] = $value;
487
        $this->options['form_params']['ImageType'] = $value;
488
489
        return $this;
490
    }
491
492
    /**
493
     * @param string $value
494
     *
495
     * @return $this
496
     */
497
    public function withImageURL($value)
498
    {
499
        $this->data['ImageURL'] = $value;
500
        $this->options['form_params']['ImageURL'] = $value;
501
502
        return $this;
503
    }
504
}
505
506
/**
507
 * @method string getImageURL()
508
 */
509
class RecognizePassportMRZ extends Rpc
510
{
511
512
    /**
513
     * @param string $value
514
     *
515
     * @return $this
516
     */
517
    public function withImageURL($value)
518
    {
519
        $this->data['ImageURL'] = $value;
520
        $this->options['form_params']['ImageURL'] = $value;
521
522
        return $this;
523
    }
524
}
525
526
/**
527
 * @method string getFileURL()
528
 */
529
class RecognizePdf extends Rpc
530
{
531
532
    /**
533
     * @param string $value
534
     *
535
     * @return $this
536
     */
537
    public function withFileURL($value)
538
    {
539
        $this->data['FileURL'] = $value;
540
        $this->options['form_params']['FileURL'] = $value;
541
542
        return $this;
543
    }
544
}
545
546
/**
547
 * @method string getImageURL()
548
 */
549
class RecognizePoiName extends Rpc
550
{
551
552
    /**
553
     * @param string $value
554
     *
555
     * @return $this
556
     */
557
    public function withImageURL($value)
558
    {
559
        $this->data['ImageURL'] = $value;
560
        $this->options['form_params']['ImageURL'] = $value;
561
562
        return $this;
563
    }
564
}
565
566
/**
567
 * @method array getTasks()
568
 */
569
class RecognizeQrCode extends Rpc
570
{
571
572
    /**
573
     * @param array $tasks
574
     *
575
     * @return $this
576
     */
577
	public function withTasks(array $tasks)
578
	{
579
	    $this->data['Tasks'] = $tasks;
580
		foreach ($tasks as $depth1 => $depth1Value) {
581
			if(isset($depth1Value['ImageURL'])){
582
				$this->options['form_params']['Tasks.' . ($depth1 + 1) . '.ImageURL'] = $depth1Value['ImageURL'];
583
			}
584
		}
585
586
		return $this;
587
    }
588
}
589
590
/**
591
 * @method string getImageURL()
592
 */
593
class RecognizeQuotaInvoice extends Rpc
594
{
595
596
    /**
597
     * @param string $value
598
     *
599
     * @return $this
600
     */
601
    public function withImageURL($value)
602
    {
603
        $this->data['ImageURL'] = $value;
604
        $this->options['form_params']['ImageURL'] = $value;
605
606
        return $this;
607
    }
608
}
609
610
/**
611
 * @method string getImageType()
612
 * @method string getImageURL()
613
 */
614
class RecognizeStamp extends Rpc
615
{
616
617
    /**
618
     * @param string $value
619
     *
620
     * @return $this
621
     */
622
    public function withImageType($value)
623
    {
624
        $this->data['ImageType'] = $value;
625
        $this->options['form_params']['ImageType'] = $value;
626
627
        return $this;
628
    }
629
630
    /**
631
     * @param string $value
632
     *
633
     * @return $this
634
     */
635
    public function withImageURL($value)
636
    {
637
        $this->data['ImageURL'] = $value;
638
        $this->options['form_params']['ImageURL'] = $value;
639
640
        return $this;
641
    }
642
}
643
644
/**
645
 * @method string getUseFinanceModel()
646
 * @method string getSkipDetection()
647
 * @method string getOutputFormat()
648
 * @method string getAssureDirection()
649
 * @method string getHasLine()
650
 * @method string getImageType()
651
 * @method string getImageURL()
652
 */
653
class RecognizeTable extends Rpc
654
{
655
656
    /**
657
     * @param string $value
658
     *
659
     * @return $this
660
     */
661
    public function withUseFinanceModel($value)
662
    {
663
        $this->data['UseFinanceModel'] = $value;
664
        $this->options['form_params']['UseFinanceModel'] = $value;
665
666
        return $this;
667
    }
668
669
    /**
670
     * @param string $value
671
     *
672
     * @return $this
673
     */
674
    public function withSkipDetection($value)
675
    {
676
        $this->data['SkipDetection'] = $value;
677
        $this->options['form_params']['SkipDetection'] = $value;
678
679
        return $this;
680
    }
681
682
    /**
683
     * @param string $value
684
     *
685
     * @return $this
686
     */
687
    public function withOutputFormat($value)
688
    {
689
        $this->data['OutputFormat'] = $value;
690
        $this->options['form_params']['OutputFormat'] = $value;
691
692
        return $this;
693
    }
694
695
    /**
696
     * @param string $value
697
     *
698
     * @return $this
699
     */
700
    public function withAssureDirection($value)
701
    {
702
        $this->data['AssureDirection'] = $value;
703
        $this->options['form_params']['AssureDirection'] = $value;
704
705
        return $this;
706
    }
707
708
    /**
709
     * @param string $value
710
     *
711
     * @return $this
712
     */
713
    public function withHasLine($value)
714
    {
715
        $this->data['HasLine'] = $value;
716
        $this->options['form_params']['HasLine'] = $value;
717
718
        return $this;
719
    }
720
721
    /**
722
     * @param string $value
723
     *
724
     * @return $this
725
     */
726
    public function withImageType($value)
727
    {
728
        $this->data['ImageType'] = $value;
729
        $this->options['form_params']['ImageType'] = $value;
730
731
        return $this;
732
    }
733
734
    /**
735
     * @param string $value
736
     *
737
     * @return $this
738
     */
739
    public function withImageURL($value)
740
    {
741
        $this->data['ImageURL'] = $value;
742
        $this->options['form_params']['ImageURL'] = $value;
743
744
        return $this;
745
    }
746
}
747
748
/**
749
 * @method string getImageURL()
750
 */
751
class RecognizeTakeoutOrder extends Rpc
752
{
753
754
    /**
755
     * @param string $value
756
     *
757
     * @return $this
758
     */
759
    public function withImageURL($value)
760
    {
761
        $this->data['ImageURL'] = $value;
762
        $this->options['form_params']['ImageURL'] = $value;
763
764
        return $this;
765
    }
766
}
767
768
/**
769
 * @method string getImageType()
770
 * @method string getImageURL()
771
 */
772
class RecognizeTaxiInvoice extends Rpc
773
{
774
775
    /**
776
     * @param string $value
777
     *
778
     * @return $this
779
     */
780
    public function withImageType($value)
781
    {
782
        $this->data['ImageType'] = $value;
783
        $this->options['form_params']['ImageType'] = $value;
784
785
        return $this;
786
    }
787
788
    /**
789
     * @param string $value
790
     *
791
     * @return $this
792
     */
793
    public function withImageURL($value)
794
    {
795
        $this->data['ImageURL'] = $value;
796
        $this->options['form_params']['ImageURL'] = $value;
797
798
        return $this;
799
    }
800
}
801
802
/**
803
 * @method string getImageURL()
804
 */
805
class RecognizeTicketInvoice extends Rpc
806
{
807
808
    /**
809
     * @param string $value
810
     *
811
     * @return $this
812
     */
813
    public function withImageURL($value)
814
    {
815
        $this->data['ImageURL'] = $value;
816
        $this->options['form_params']['ImageURL'] = $value;
817
818
        return $this;
819
    }
820
}
821
822
/**
823
 * @method string getImageType()
824
 * @method string getImageURL()
825
 */
826
class RecognizeTrainTicket extends Rpc
827
{
828
829
    /**
830
     * @param string $value
831
     *
832
     * @return $this
833
     */
834
    public function withImageType($value)
835
    {
836
        $this->data['ImageType'] = $value;
837
        $this->options['form_params']['ImageType'] = $value;
838
839
        return $this;
840
    }
841
842
    /**
843
     * @param string $value
844
     *
845
     * @return $this
846
     */
847
    public function withImageURL($value)
848
    {
849
        $this->data['ImageURL'] = $value;
850
        $this->options['form_params']['ImageURL'] = $value;
851
852
        return $this;
853
    }
854
}
855
856
/**
857
 * @method string getFileType()
858
 * @method string getFileURL()
859
 */
860
class RecognizeVATInvoice extends Rpc
861
{
862
863
    /**
864
     * @param string $value
865
     *
866
     * @return $this
867
     */
868
    public function withFileType($value)
869
    {
870
        $this->data['FileType'] = $value;
871
        $this->options['form_params']['FileType'] = $value;
872
873
        return $this;
874
    }
875
876
    /**
877
     * @param string $value
878
     *
879
     * @return $this
880
     */
881
    public function withFileURL($value)
882
    {
883
        $this->data['FileURL'] = $value;
884
        $this->options['form_params']['FileURL'] = $value;
885
886
        return $this;
887
    }
888
}
889
890
/**
891
 * @method string getImageURL()
892
 */
893
class RecognizeVerificationcode extends Rpc
894
{
895
896
    /**
897
     * @param string $value
898
     *
899
     * @return $this
900
     */
901
    public function withImageURL($value)
902
    {
903
        $this->data['ImageURL'] = $value;
904
        $this->options['form_params']['ImageURL'] = $value;
905
906
        return $this;
907
    }
908
}
909
910
/**
911
 * @method string getAsync()
912
 * @method string getVideoURL()
913
 */
914
class RecognizeVideoCharacter extends Rpc
915
{
916
917
    /**
918
     * @param string $value
919
     *
920
     * @return $this
921
     */
922
    public function withAsync($value)
923
    {
924
        $this->data['Async'] = $value;
925
        $this->options['form_params']['Async'] = $value;
926
927
        return $this;
928
    }
929
930
    /**
931
     * @param string $value
932
     *
933
     * @return $this
934
     */
935
    public function withVideoURL($value)
936
    {
937
        $this->data['VideoURL'] = $value;
938
        $this->options['form_params']['VideoURL'] = $value;
939
940
        return $this;
941
    }
942
}
943
944
/**
945
 * @method string getImageType()
946
 * @method $this withImageType($value)
947
 * @method string getImageURL()
948
 * @method $this withImageURL($value)
949
 */
950
class RecognizeVINCode extends Rpc
951
{
952
}
953
954
/**
955
 * @method string getFileType()
956
 * @method string getOutputType()
957
 * @method string getAsync()
958
 * @method string getFileURL()
959
 */
960
class TrimDocument extends Rpc
961
{
962
963
    /**
964
     * @param string $value
965
     *
966
     * @return $this
967
     */
968
    public function withFileType($value)
969
    {
970
        $this->data['FileType'] = $value;
971
        $this->options['form_params']['FileType'] = $value;
972
973
        return $this;
974
    }
975
976
    /**
977
     * @param string $value
978
     *
979
     * @return $this
980
     */
981
    public function withOutputType($value)
982
    {
983
        $this->data['OutputType'] = $value;
984
        $this->options['form_params']['OutputType'] = $value;
985
986
        return $this;
987
    }
988
989
    /**
990
     * @param string $value
991
     *
992
     * @return $this
993
     */
994
    public function withAsync($value)
995
    {
996
        $this->data['Async'] = $value;
997
        $this->options['form_params']['Async'] = $value;
998
999
        return $this;
1000
    }
1001
1002
    /**
1003
     * @param string $value
1004
     *
1005
     * @return $this
1006
     */
1007
    public function withFileURL($value)
1008
    {
1009
        $this->data['FileURL'] = $value;
1010
        $this->options['form_params']['FileURL'] = $value;
1011
1012
        return $this;
1013
    }
1014
}
1015