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 ( f1a9d0...f893d6 )
by
unknown
19:58 queued 14:16
created

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