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 ( 3d7e37...6ee436 )
by
unknown
08:09 queued 03:44
created

RecognizeVerificationcode::withImageURL()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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