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 ( e20d06...d0d371 )
by
unknown
06:18
created

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