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 ( 994bc8...d5530d )
by
unknown
15:30 queued 10:19
created

RecognizeIdentityCard::withImageContent()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 3
c 2
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
 */
46
class RecognizeAccountPage extends Rpc
47
{
48
49
    /**
50
     * @param string $value
51
     *
52
     * @return $this
53
     */
54
    public function withImageType($value)
55
    {
56
        $this->data['ImageType'] = $value;
57
        $this->options['form_params']['ImageType'] = $value;
58
59
        return $this;
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 getImageType()
78
 * @method string getImageURL()
79
 */
80
class RecognizeBankCard extends Rpc
81
{
82
83
    /**
84
     * @param string $value
85
     *
86
     * @return $this
87
     */
88
    public function withImageType($value)
89
    {
90
        $this->data['ImageType'] = $value;
91
        $this->options['form_params']['ImageType'] = $value;
92
93
        return $this;
94
    }
95
96
    /**
97
     * @param string $value
98
     *
99
     * @return $this
100
     */
101
    public function withImageURL($value)
102
    {
103
        $this->data['ImageURL'] = $value;
104
        $this->options['form_params']['ImageURL'] = $value;
105
106
        return $this;
107
    }
108
}
109
110
/**
111
 * @method string getImageType()
112
 * @method string getImageURL()
113
 */
114
class RecognizeBusinessCard 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 RecognizeBusinessLicense 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 getOutputProbability()
181
 * @method string getImageURL()
182
 * @method string getMinHeight()
183
 */
184
class RecognizeCharacter extends Rpc
185
{
186
187
    /**
188
     * @param string $value
189
     *
190
     * @return $this
191
     */
192
    public function withImageType($value)
193
    {
194
        $this->data['ImageType'] = $value;
195
        $this->options['form_params']['ImageType'] = $value;
196
197
        return $this;
198
    }
199
200
    /**
201
     * @param string $value
202
     *
203
     * @return $this
204
     */
205
    public function withOutputProbability($value)
206
    {
207
        $this->data['OutputProbability'] = $value;
208
        $this->options['form_params']['OutputProbability'] = $value;
209
210
        return $this;
211
    }
212
213
    /**
214
     * @param string $value
215
     *
216
     * @return $this
217
     */
218
    public function withImageURL($value)
219
    {
220
        $this->data['ImageURL'] = $value;
221
        $this->options['form_params']['ImageURL'] = $value;
222
223
        return $this;
224
    }
225
226
    /**
227
     * @param string $value
228
     *
229
     * @return $this
230
     */
231
    public function withMinHeight($value)
232
    {
233
        $this->data['MinHeight'] = $value;
234
        $this->options['form_params']['MinHeight'] = $value;
235
236
        return $this;
237
    }
238
}
239
240
/**
241
 * @method string getImageType()
242
 * @method string getSide()
243
 * @method string getImageURL()
244
 */
245
class RecognizeDriverLicense extends Rpc
246
{
247
248
    /**
249
     * @param string $value
250
     *
251
     * @return $this
252
     */
253
    public function withImageType($value)
254
    {
255
        $this->data['ImageType'] = $value;
256
        $this->options['form_params']['ImageType'] = $value;
257
258
        return $this;
259
    }
260
261
    /**
262
     * @param string $value
263
     *
264
     * @return $this
265
     */
266
    public function withSide($value)
267
    {
268
        $this->data['Side'] = $value;
269
        $this->options['form_params']['Side'] = $value;
270
271
        return $this;
272
    }
273
274
    /**
275
     * @param string $value
276
     *
277
     * @return $this
278
     */
279
    public function withImageURL($value)
280
    {
281
        $this->data['ImageURL'] = $value;
282
        $this->options['form_params']['ImageURL'] = $value;
283
284
        return $this;
285
    }
286
}
287
288
/**
289
 * @method string getImageType()
290
 * @method string getSide()
291
 * @method string getImageURL()
292
 */
293
class RecognizeDrivingLicense extends Rpc
294
{
295
296
    /**
297
     * @param string $value
298
     *
299
     * @return $this
300
     */
301
    public function withImageType($value)
302
    {
303
        $this->data['ImageType'] = $value;
304
        $this->options['form_params']['ImageType'] = $value;
305
306
        return $this;
307
    }
308
309
    /**
310
     * @param string $value
311
     *
312
     * @return $this
313
     */
314
    public function withSide($value)
315
    {
316
        $this->data['Side'] = $value;
317
        $this->options['form_params']['Side'] = $value;
318
319
        return $this;
320
    }
321
322
    /**
323
     * @param string $value
324
     *
325
     * @return $this
326
     */
327
    public function withImageURL($value)
328
    {
329
        $this->data['ImageURL'] = $value;
330
        $this->options['form_params']['ImageURL'] = $value;
331
332
        return $this;
333
    }
334
}
335
336
/**
337
 * @method string getImageType()
338
 * @method string getSide()
339
 * @method string getImageURL()
340
 */
341
class RecognizeIdentityCard extends Rpc
342
{
343
344
    /**
345
     * @param string $value
346
     *
347
     * @return $this
348
     */
349
    public function withImageType($value)
350
    {
351
        $this->data['ImageType'] = $value;
352
        $this->options['form_params']['ImageType'] = $value;
353
354
        return $this;
355
    }
356
357
    /**
358
     * @param string $value
359
     *
360
     * @return $this
361
     */
362
    public function withSide($value)
363
    {
364
        $this->data['Side'] = $value;
365
        $this->options['form_params']['Side'] = $value;
366
367
        return $this;
368
    }
369
370
    /**
371
     * @param string $value
372
     *
373
     * @return $this
374
     */
375
    public function withImageURL($value)
376
    {
377
        $this->data['ImageURL'] = $value;
378
        $this->options['form_params']['ImageURL'] = $value;
379
380
        return $this;
381
    }
382
}
383
384
/**
385
 * @method string getImageType()
386
 * @method string getImageURL()
387
 */
388
class RecognizeLicensePlate extends Rpc
389
{
390
391
    /**
392
     * @param string $value
393
     *
394
     * @return $this
395
     */
396
    public function withImageType($value)
397
    {
398
        $this->data['ImageType'] = $value;
399
        $this->options['form_params']['ImageType'] = $value;
400
401
        return $this;
402
    }
403
404
    /**
405
     * @param string $value
406
     *
407
     * @return $this
408
     */
409
    public function withImageURL($value)
410
    {
411
        $this->data['ImageURL'] = $value;
412
        $this->options['form_params']['ImageURL'] = $value;
413
414
        return $this;
415
    }
416
}
417
418
/**
419
 * @method string getImageType()
420
 * @method string getImageURL()
421
 */
422
class RecognizeStamp extends Rpc
423
{
424
425
    /**
426
     * @param string $value
427
     *
428
     * @return $this
429
     */
430
    public function withImageType($value)
431
    {
432
        $this->data['ImageType'] = $value;
433
        $this->options['form_params']['ImageType'] = $value;
434
435
        return $this;
436
    }
437
438
    /**
439
     * @param string $value
440
     *
441
     * @return $this
442
     */
443
    public function withImageURL($value)
444
    {
445
        $this->data['ImageURL'] = $value;
446
        $this->options['form_params']['ImageURL'] = $value;
447
448
        return $this;
449
    }
450
}
451
452
/**
453
 * @method string getImageType()
454
 * @method string getUseFinanceModel()
455
 * @method string getSkipDetection()
456
 * @method string getImageURL()
457
 * @method string getOutputFormat()
458
 * @method string getAssureDirection()
459
 * @method string getHasLine()
460
 */
461
class RecognizeTable extends Rpc
462
{
463
464
    /**
465
     * @param string $value
466
     *
467
     * @return $this
468
     */
469
    public function withImageType($value)
470
    {
471
        $this->data['ImageType'] = $value;
472
        $this->options['form_params']['ImageType'] = $value;
473
474
        return $this;
475
    }
476
477
    /**
478
     * @param string $value
479
     *
480
     * @return $this
481
     */
482
    public function withUseFinanceModel($value)
483
    {
484
        $this->data['UseFinanceModel'] = $value;
485
        $this->options['form_params']['UseFinanceModel'] = $value;
486
487
        return $this;
488
    }
489
490
    /**
491
     * @param string $value
492
     *
493
     * @return $this
494
     */
495
    public function withSkipDetection($value)
496
    {
497
        $this->data['SkipDetection'] = $value;
498
        $this->options['form_params']['SkipDetection'] = $value;
499
500
        return $this;
501
    }
502
503
    /**
504
     * @param string $value
505
     *
506
     * @return $this
507
     */
508
    public function withImageURL($value)
509
    {
510
        $this->data['ImageURL'] = $value;
511
        $this->options['form_params']['ImageURL'] = $value;
512
513
        return $this;
514
    }
515
516
    /**
517
     * @param string $value
518
     *
519
     * @return $this
520
     */
521
    public function withOutputFormat($value)
522
    {
523
        $this->data['OutputFormat'] = $value;
524
        $this->options['form_params']['OutputFormat'] = $value;
525
526
        return $this;
527
    }
528
529
    /**
530
     * @param string $value
531
     *
532
     * @return $this
533
     */
534
    public function withAssureDirection($value)
535
    {
536
        $this->data['AssureDirection'] = $value;
537
        $this->options['form_params']['AssureDirection'] = $value;
538
539
        return $this;
540
    }
541
542
    /**
543
     * @param string $value
544
     *
545
     * @return $this
546
     */
547
    public function withHasLine($value)
548
    {
549
        $this->data['HasLine'] = $value;
550
        $this->options['form_params']['HasLine'] = $value;
551
552
        return $this;
553
    }
554
}
555
556
/**
557
 * @method string getImageType()
558
 * @method string getImageURL()
559
 */
560
class RecognizeTaxiInvoice extends Rpc
561
{
562
563
    /**
564
     * @param string $value
565
     *
566
     * @return $this
567
     */
568
    public function withImageType($value)
569
    {
570
        $this->data['ImageType'] = $value;
571
        $this->options['form_params']['ImageType'] = $value;
572
573
        return $this;
574
    }
575
576
    /**
577
     * @param string $value
578
     *
579
     * @return $this
580
     */
581
    public function withImageURL($value)
582
    {
583
        $this->data['ImageURL'] = $value;
584
        $this->options['form_params']['ImageURL'] = $value;
585
586
        return $this;
587
    }
588
}
589
590
/**
591
 * @method string getImageType()
592
 * @method string getImageURL()
593
 */
594
class RecognizeTrainTicket extends Rpc
595
{
596
597
    /**
598
     * @param string $value
599
     *
600
     * @return $this
601
     */
602
    public function withImageType($value)
603
    {
604
        $this->data['ImageType'] = $value;
605
        $this->options['form_params']['ImageType'] = $value;
606
607
        return $this;
608
    }
609
610
    /**
611
     * @param string $value
612
     *
613
     * @return $this
614
     */
615
    public function withImageURL($value)
616
    {
617
        $this->data['ImageURL'] = $value;
618
        $this->options['form_params']['ImageURL'] = $value;
619
620
        return $this;
621
    }
622
}
623
624
/**
625
 * @method string getImageType()
626
 * @method $this withImageType($value)
627
 * @method string getImageURL()
628
 * @method $this withImageURL($value)
629
 */
630
class RecognizeVINCode extends Rpc
631
{
632
}
633