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 ( f361d8...695f9e )
by
unknown
07:07
created

RecognizeUkraineIdentityCard::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 RecognizeUkraineIdentityCard recognizeUkraineIdentityCard(array $options = [])
32
 * @method RecognizeVATInvoice recognizeVATInvoice(array $options = [])
33
 * @method RecognizeVerificationcode recognizeVerificationcode(array $options = [])
34
 * @method RecognizeVideoCastCrewList recognizeVideoCastCrewList(array $options = [])
35
 * @method RecognizeVideoCharacter recognizeVideoCharacter(array $options = [])
36
 * @method RecognizeVINCode recognizeVINCode(array $options = [])
37
 * @method TrimDocument trimDocument(array $options = [])
38
 */
39
class OcrApiResolver extends ApiResolver
40
{
41
}
42
43
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
44
{
45
    /** @var string */
46
    public $product = 'ocr';
47
48
    /** @var string */
49
    public $version = '2019-12-30';
50
51
    /** @var string */
52
    public $method = 'POST';
53
54
    /** @var string */
55
    public $serviceCode = 'ocr';
56
}
57
58
/**
59
 * @method string getImageURL()
60
 */
61
class DetectCardScreenshot extends Rpc
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 getJobId()
80
 * @method string getAsync()
81
 */
82
class GetAsyncJobResult extends Rpc
83
{
84
85
    /**
86
     * @param string $value
87
     *
88
     * @return $this
89
     */
90
    public function withJobId($value)
91
    {
92
        $this->data['JobId'] = $value;
93
        $this->options['form_params']['JobId'] = $value;
94
95
        return $this;
96
    }
97
98
    /**
99
     * @param string $value
100
     *
101
     * @return $this
102
     */
103
    public function withAsync($value)
104
    {
105
        $this->data['Async'] = $value;
106
        $this->options['form_params']['Async'] = $value;
107
108
        return $this;
109
    }
110
}
111
112
/**
113
 * @method string getImageType()
114
 * @method string getImageURL()
115
 */
116
class RecognizeAccountPage 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 RecognizeBankCard 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 getImageURL()
183
 */
184
class RecognizeBusinessCard 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 withImageURL($value)
206
    {
207
        $this->data['ImageURL'] = $value;
208
        $this->options['form_params']['ImageURL'] = $value;
209
210
        return $this;
211
    }
212
}
213
214
/**
215
 * @method string getImageType()
216
 * @method string getImageURL()
217
 */
218
class RecognizeBusinessLicense extends Rpc
219
{
220
221
    /**
222
     * @param string $value
223
     *
224
     * @return $this
225
     */
226
    public function withImageType($value)
227
    {
228
        $this->data['ImageType'] = $value;
229
        $this->options['form_params']['ImageType'] = $value;
230
231
        return $this;
232
    }
233
234
    /**
235
     * @param string $value
236
     *
237
     * @return $this
238
     */
239
    public function withImageURL($value)
240
    {
241
        $this->data['ImageURL'] = $value;
242
        $this->options['form_params']['ImageURL'] = $value;
243
244
        return $this;
245
    }
246
}
247
248
/**
249
 * @method string getMinHeight()
250
 * @method string getImageType()
251
 * @method string getOutputProbability()
252
 * @method string getImageURL()
253
 */
254
class RecognizeCharacter extends Rpc
255
{
256
257
    /**
258
     * @param string $value
259
     *
260
     * @return $this
261
     */
262
    public function withMinHeight($value)
263
    {
264
        $this->data['MinHeight'] = $value;
265
        $this->options['form_params']['MinHeight'] = $value;
266
267
        return $this;
268
    }
269
270
    /**
271
     * @param string $value
272
     *
273
     * @return $this
274
     */
275
    public function withImageType($value)
276
    {
277
        $this->data['ImageType'] = $value;
278
        $this->options['form_params']['ImageType'] = $value;
279
280
        return $this;
281
    }
282
283
    /**
284
     * @param string $value
285
     *
286
     * @return $this
287
     */
288
    public function withOutputProbability($value)
289
    {
290
        $this->data['OutputProbability'] = $value;
291
        $this->options['form_params']['OutputProbability'] = $value;
292
293
        return $this;
294
    }
295
296
    /**
297
     * @param string $value
298
     *
299
     * @return $this
300
     */
301
    public function withImageURL($value)
302
    {
303
        $this->data['ImageURL'] = $value;
304
        $this->options['form_params']['ImageURL'] = $value;
305
306
        return $this;
307
    }
308
}
309
310
/**
311
 * @method string getImageURL()
312
 */
313
class RecognizeChinapassport extends Rpc
314
{
315
316
    /**
317
     * @param string $value
318
     *
319
     * @return $this
320
     */
321
    public function withImageURL($value)
322
    {
323
        $this->data['ImageURL'] = $value;
324
        $this->options['form_params']['ImageURL'] = $value;
325
326
        return $this;
327
    }
328
}
329
330
/**
331
 * @method string getImageType()
332
 * @method string getSide()
333
 * @method string getImageURL()
334
 */
335
class RecognizeDriverLicense extends Rpc
336
{
337
338
    /**
339
     * @param string $value
340
     *
341
     * @return $this
342
     */
343
    public function withImageType($value)
344
    {
345
        $this->data['ImageType'] = $value;
346
        $this->options['form_params']['ImageType'] = $value;
347
348
        return $this;
349
    }
350
351
    /**
352
     * @param string $value
353
     *
354
     * @return $this
355
     */
356
    public function withSide($value)
357
    {
358
        $this->data['Side'] = $value;
359
        $this->options['form_params']['Side'] = $value;
360
361
        return $this;
362
    }
363
364
    /**
365
     * @param string $value
366
     *
367
     * @return $this
368
     */
369
    public function withImageURL($value)
370
    {
371
        $this->data['ImageURL'] = $value;
372
        $this->options['form_params']['ImageURL'] = $value;
373
374
        return $this;
375
    }
376
}
377
378
/**
379
 * @method string getImageType()
380
 * @method string getSide()
381
 * @method string getImageURL()
382
 */
383
class RecognizeDrivingLicense extends Rpc
384
{
385
386
    /**
387
     * @param string $value
388
     *
389
     * @return $this
390
     */
391
    public function withImageType($value)
392
    {
393
        $this->data['ImageType'] = $value;
394
        $this->options['form_params']['ImageType'] = $value;
395
396
        return $this;
397
    }
398
399
    /**
400
     * @param string $value
401
     *
402
     * @return $this
403
     */
404
    public function withSide($value)
405
    {
406
        $this->data['Side'] = $value;
407
        $this->options['form_params']['Side'] = $value;
408
409
        return $this;
410
    }
411
412
    /**
413
     * @param string $value
414
     *
415
     * @return $this
416
     */
417
    public function withImageURL($value)
418
    {
419
        $this->data['ImageURL'] = $value;
420
        $this->options['form_params']['ImageURL'] = $value;
421
422
        return $this;
423
    }
424
}
425
426
/**
427
 * @method string getImageType()
428
 * @method string getSide()
429
 * @method string getImageURL()
430
 */
431
class RecognizeIdentityCard extends Rpc
432
{
433
434
    /**
435
     * @param string $value
436
     *
437
     * @return $this
438
     */
439
    public function withImageType($value)
440
    {
441
        $this->data['ImageType'] = $value;
442
        $this->options['form_params']['ImageType'] = $value;
443
444
        return $this;
445
    }
446
447
    /**
448
     * @param string $value
449
     *
450
     * @return $this
451
     */
452
    public function withSide($value)
453
    {
454
        $this->data['Side'] = $value;
455
        $this->options['form_params']['Side'] = $value;
456
457
        return $this;
458
    }
459
460
    /**
461
     * @param string $value
462
     *
463
     * @return $this
464
     */
465
    public function withImageURL($value)
466
    {
467
        $this->data['ImageURL'] = $value;
468
        $this->options['form_params']['ImageURL'] = $value;
469
470
        return $this;
471
    }
472
}
473
474
/**
475
 * @method string getImageType()
476
 * @method string getImageURL()
477
 */
478
class RecognizeLicensePlate extends Rpc
479
{
480
481
    /**
482
     * @param string $value
483
     *
484
     * @return $this
485
     */
486
    public function withImageType($value)
487
    {
488
        $this->data['ImageType'] = $value;
489
        $this->options['form_params']['ImageType'] = $value;
490
491
        return $this;
492
    }
493
494
    /**
495
     * @param string $value
496
     *
497
     * @return $this
498
     */
499
    public function withImageURL($value)
500
    {
501
        $this->data['ImageURL'] = $value;
502
        $this->options['form_params']['ImageURL'] = $value;
503
504
        return $this;
505
    }
506
}
507
508
/**
509
 * @method string getImageURL()
510
 */
511
class RecognizePassportMRZ extends Rpc
512
{
513
514
    /**
515
     * @param string $value
516
     *
517
     * @return $this
518
     */
519
    public function withImageURL($value)
520
    {
521
        $this->data['ImageURL'] = $value;
522
        $this->options['form_params']['ImageURL'] = $value;
523
524
        return $this;
525
    }
526
}
527
528
/**
529
 * @method string getFileURL()
530
 */
531
class RecognizePdf extends Rpc
532
{
533
534
    /**
535
     * @param string $value
536
     *
537
     * @return $this
538
     */
539
    public function withFileURL($value)
540
    {
541
        $this->data['FileURL'] = $value;
542
        $this->options['form_params']['FileURL'] = $value;
543
544
        return $this;
545
    }
546
}
547
548
/**
549
 * @method string getImageURL()
550
 */
551
class RecognizePoiName extends Rpc
552
{
553
554
    /**
555
     * @param string $value
556
     *
557
     * @return $this
558
     */
559
    public function withImageURL($value)
560
    {
561
        $this->data['ImageURL'] = $value;
562
        $this->options['form_params']['ImageURL'] = $value;
563
564
        return $this;
565
    }
566
}
567
568
/**
569
 * @method array getTasks()
570
 */
571
class RecognizeQrCode extends Rpc
572
{
573
574
    /**
575
     * @param array $tasks
576
     *
577
     * @return $this
578
     */
579
	public function withTasks(array $tasks)
580
	{
581
	    $this->data['Tasks'] = $tasks;
582
		foreach ($tasks as $depth1 => $depth1Value) {
583
			if(isset($depth1Value['ImageURL'])){
584
				$this->options['form_params']['Tasks.' . ($depth1 + 1) . '.ImageURL'] = $depth1Value['ImageURL'];
585
			}
586
		}
587
588
		return $this;
589
    }
590
}
591
592
/**
593
 * @method string getImageURL()
594
 */
595
class RecognizeQuotaInvoice extends Rpc
596
{
597
598
    /**
599
     * @param string $value
600
     *
601
     * @return $this
602
     */
603
    public function withImageURL($value)
604
    {
605
        $this->data['ImageURL'] = $value;
606
        $this->options['form_params']['ImageURL'] = $value;
607
608
        return $this;
609
    }
610
}
611
612
/**
613
 * @method string getImageType()
614
 * @method string getImageURL()
615
 */
616
class RecognizeStamp extends Rpc
617
{
618
619
    /**
620
     * @param string $value
621
     *
622
     * @return $this
623
     */
624
    public function withImageType($value)
625
    {
626
        $this->data['ImageType'] = $value;
627
        $this->options['form_params']['ImageType'] = $value;
628
629
        return $this;
630
    }
631
632
    /**
633
     * @param string $value
634
     *
635
     * @return $this
636
     */
637
    public function withImageURL($value)
638
    {
639
        $this->data['ImageURL'] = $value;
640
        $this->options['form_params']['ImageURL'] = $value;
641
642
        return $this;
643
    }
644
}
645
646
/**
647
 * @method string getUseFinanceModel()
648
 * @method string getSkipDetection()
649
 * @method string getOutputFormat()
650
 * @method string getAssureDirection()
651
 * @method string getHasLine()
652
 * @method string getImageType()
653
 * @method string getImageURL()
654
 */
655
class RecognizeTable extends Rpc
656
{
657
658
    /**
659
     * @param string $value
660
     *
661
     * @return $this
662
     */
663
    public function withUseFinanceModel($value)
664
    {
665
        $this->data['UseFinanceModel'] = $value;
666
        $this->options['form_params']['UseFinanceModel'] = $value;
667
668
        return $this;
669
    }
670
671
    /**
672
     * @param string $value
673
     *
674
     * @return $this
675
     */
676
    public function withSkipDetection($value)
677
    {
678
        $this->data['SkipDetection'] = $value;
679
        $this->options['form_params']['SkipDetection'] = $value;
680
681
        return $this;
682
    }
683
684
    /**
685
     * @param string $value
686
     *
687
     * @return $this
688
     */
689
    public function withOutputFormat($value)
690
    {
691
        $this->data['OutputFormat'] = $value;
692
        $this->options['form_params']['OutputFormat'] = $value;
693
694
        return $this;
695
    }
696
697
    /**
698
     * @param string $value
699
     *
700
     * @return $this
701
     */
702
    public function withAssureDirection($value)
703
    {
704
        $this->data['AssureDirection'] = $value;
705
        $this->options['form_params']['AssureDirection'] = $value;
706
707
        return $this;
708
    }
709
710
    /**
711
     * @param string $value
712
     *
713
     * @return $this
714
     */
715
    public function withHasLine($value)
716
    {
717
        $this->data['HasLine'] = $value;
718
        $this->options['form_params']['HasLine'] = $value;
719
720
        return $this;
721
    }
722
723
    /**
724
     * @param string $value
725
     *
726
     * @return $this
727
     */
728
    public function withImageType($value)
729
    {
730
        $this->data['ImageType'] = $value;
731
        $this->options['form_params']['ImageType'] = $value;
732
733
        return $this;
734
    }
735
736
    /**
737
     * @param string $value
738
     *
739
     * @return $this
740
     */
741
    public function withImageURL($value)
742
    {
743
        $this->data['ImageURL'] = $value;
744
        $this->options['form_params']['ImageURL'] = $value;
745
746
        return $this;
747
    }
748
}
749
750
/**
751
 * @method string getImageURL()
752
 */
753
class RecognizeTakeoutOrder extends Rpc
754
{
755
756
    /**
757
     * @param string $value
758
     *
759
     * @return $this
760
     */
761
    public function withImageURL($value)
762
    {
763
        $this->data['ImageURL'] = $value;
764
        $this->options['form_params']['ImageURL'] = $value;
765
766
        return $this;
767
    }
768
}
769
770
/**
771
 * @method string getImageType()
772
 * @method string getImageURL()
773
 */
774
class RecognizeTaxiInvoice extends Rpc
775
{
776
777
    /**
778
     * @param string $value
779
     *
780
     * @return $this
781
     */
782
    public function withImageType($value)
783
    {
784
        $this->data['ImageType'] = $value;
785
        $this->options['form_params']['ImageType'] = $value;
786
787
        return $this;
788
    }
789
790
    /**
791
     * @param string $value
792
     *
793
     * @return $this
794
     */
795
    public function withImageURL($value)
796
    {
797
        $this->data['ImageURL'] = $value;
798
        $this->options['form_params']['ImageURL'] = $value;
799
800
        return $this;
801
    }
802
}
803
804
/**
805
 * @method string getImageURL()
806
 */
807
class RecognizeTicketInvoice extends Rpc
808
{
809
810
    /**
811
     * @param string $value
812
     *
813
     * @return $this
814
     */
815
    public function withImageURL($value)
816
    {
817
        $this->data['ImageURL'] = $value;
818
        $this->options['form_params']['ImageURL'] = $value;
819
820
        return $this;
821
    }
822
}
823
824
/**
825
 * @method string getImageType()
826
 * @method string getImageURL()
827
 */
828
class RecognizeTrainTicket extends Rpc
829
{
830
831
    /**
832
     * @param string $value
833
     *
834
     * @return $this
835
     */
836
    public function withImageType($value)
837
    {
838
        $this->data['ImageType'] = $value;
839
        $this->options['form_params']['ImageType'] = $value;
840
841
        return $this;
842
    }
843
844
    /**
845
     * @param string $value
846
     *
847
     * @return $this
848
     */
849
    public function withImageURL($value)
850
    {
851
        $this->data['ImageURL'] = $value;
852
        $this->options['form_params']['ImageURL'] = $value;
853
854
        return $this;
855
    }
856
}
857
858
/**
859
 * @method string getImageUrl()
860
 */
861
class RecognizeUkraineIdentityCard extends Rpc
862
{
863
864
    /**
865
     * @param string $value
866
     *
867
     * @return $this
868
     */
869
    public function withImageUrl($value)
870
    {
871
        $this->data['ImageUrl'] = $value;
872
        $this->options['form_params']['ImageUrl'] = $value;
873
874
        return $this;
875
    }
876
}
877
878
/**
879
 * @method string getFileType()
880
 * @method string getFileURL()
881
 */
882
class RecognizeVATInvoice extends Rpc
883
{
884
885
    /**
886
     * @param string $value
887
     *
888
     * @return $this
889
     */
890
    public function withFileType($value)
891
    {
892
        $this->data['FileType'] = $value;
893
        $this->options['form_params']['FileType'] = $value;
894
895
        return $this;
896
    }
897
898
    /**
899
     * @param string $value
900
     *
901
     * @return $this
902
     */
903
    public function withFileURL($value)
904
    {
905
        $this->data['FileURL'] = $value;
906
        $this->options['form_params']['FileURL'] = $value;
907
908
        return $this;
909
    }
910
}
911
912
/**
913
 * @method string getImageURL()
914
 */
915
class RecognizeVerificationcode extends Rpc
916
{
917
918
    /**
919
     * @param string $value
920
     *
921
     * @return $this
922
     */
923
    public function withImageURL($value)
924
    {
925
        $this->data['ImageURL'] = $value;
926
        $this->options['form_params']['ImageURL'] = $value;
927
928
        return $this;
929
    }
930
}
931
932
/**
933
 * @method string getParams()
934
 * @method string getAsync()
935
 * @method string getRegisterUrl()
936
 * @method string getVideoUrl()
937
 */
938
class RecognizeVideoCastCrewList extends Rpc
939
{
940
941
    /**
942
     * @param string $value
943
     *
944
     * @return $this
945
     */
946
    public function withParams($value)
947
    {
948
        $this->data['Params'] = $value;
949
        $this->options['form_params']['Params'] = $value;
950
951
        return $this;
952
    }
953
954
    /**
955
     * @param string $value
956
     *
957
     * @return $this
958
     */
959
    public function withAsync($value)
960
    {
961
        $this->data['Async'] = $value;
962
        $this->options['form_params']['Async'] = $value;
963
964
        return $this;
965
    }
966
967
    /**
968
     * @param string $value
969
     *
970
     * @return $this
971
     */
972
    public function withRegisterUrl($value)
973
    {
974
        $this->data['RegisterUrl'] = $value;
975
        $this->options['form_params']['RegisterUrl'] = $value;
976
977
        return $this;
978
    }
979
980
    /**
981
     * @param string $value
982
     *
983
     * @return $this
984
     */
985
    public function withVideoUrl($value)
986
    {
987
        $this->data['VideoUrl'] = $value;
988
        $this->options['form_params']['VideoUrl'] = $value;
989
990
        return $this;
991
    }
992
}
993
994
/**
995
 * @method string getAsync()
996
 * @method string getVideoURL()
997
 */
998
class RecognizeVideoCharacter extends Rpc
999
{
1000
1001
    /**
1002
     * @param string $value
1003
     *
1004
     * @return $this
1005
     */
1006
    public function withAsync($value)
1007
    {
1008
        $this->data['Async'] = $value;
1009
        $this->options['form_params']['Async'] = $value;
1010
1011
        return $this;
1012
    }
1013
1014
    /**
1015
     * @param string $value
1016
     *
1017
     * @return $this
1018
     */
1019
    public function withVideoURL($value)
1020
    {
1021
        $this->data['VideoURL'] = $value;
1022
        $this->options['form_params']['VideoURL'] = $value;
1023
1024
        return $this;
1025
    }
1026
}
1027
1028
/**
1029
 * @method string getImageType()
1030
 * @method $this withImageType($value)
1031
 * @method string getImageURL()
1032
 * @method $this withImageURL($value)
1033
 */
1034
class RecognizeVINCode extends Rpc
1035
{
1036
}
1037
1038
/**
1039
 * @method string getFileType()
1040
 * @method string getOutputType()
1041
 * @method string getAsync()
1042
 * @method string getFileURL()
1043
 */
1044
class TrimDocument extends Rpc
1045
{
1046
1047
    /**
1048
     * @param string $value
1049
     *
1050
     * @return $this
1051
     */
1052
    public function withFileType($value)
1053
    {
1054
        $this->data['FileType'] = $value;
1055
        $this->options['form_params']['FileType'] = $value;
1056
1057
        return $this;
1058
    }
1059
1060
    /**
1061
     * @param string $value
1062
     *
1063
     * @return $this
1064
     */
1065
    public function withOutputType($value)
1066
    {
1067
        $this->data['OutputType'] = $value;
1068
        $this->options['form_params']['OutputType'] = $value;
1069
1070
        return $this;
1071
    }
1072
1073
    /**
1074
     * @param string $value
1075
     *
1076
     * @return $this
1077
     */
1078
    public function withAsync($value)
1079
    {
1080
        $this->data['Async'] = $value;
1081
        $this->options['form_params']['Async'] = $value;
1082
1083
        return $this;
1084
    }
1085
1086
    /**
1087
     * @param string $value
1088
     *
1089
     * @return $this
1090
     */
1091
    public function withFileURL($value)
1092
    {
1093
        $this->data['FileURL'] = $value;
1094
        $this->options['form_params']['FileURL'] = $value;
1095
1096
        return $this;
1097
    }
1098
}
1099