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 ( a09a40...3bcb20 )
by
unknown
06:43
created

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