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 ( 367f79...c2f98f )
by
unknown
06:02
created

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