Passed
Push — v6 ( fe03e1...0ec70f )
by 光春
04:11
created

__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 2
rs 10
1
<?php
2
namespace Com\Pdd\Pop\Sdk\Api\Request;
3
4
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
5
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
6
7
class PddTrainCancelChangeRequest extends PopBaseHttpRequest
8
{
9
    public function __construct()
10
	{
11
12
	}
13
	/**
14
	* @JsonProperty(String, "pdd_order_id")
15
	*/
16
	private $pddOrderId;
17
18
	/**
19
	* @JsonProperty(String, "order_id")
20
	*/
21
	private $orderId;
22
23
	/**
24
	* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainCancelChangeRequest_PassengerInfosItem>, "passenger_infos")
25
	*/
26
	private $passengerInfos;
27
28
	protected function setUserParams(&$params)
29
	{
30
		$this->setUserParam($params, "pdd_order_id", $this->pddOrderId);
31
		$this->setUserParam($params, "order_id", $this->orderId);
32
		$this->setUserParam($params, "passenger_infos", $this->passengerInfos);
33
34
	}
35
36
	public function getVersion()
37
	{
38
		return "V1";
39
	}
40
41
	public function getDataType()
42
	{
43
		return "JSON";
44
	}
45
46
	public function getType()
47
	{
48
		return "pdd.train.cancel.change";
49
	}
50
51
	public function setPddOrderId($pddOrderId)
52
	{
53
		$this->pddOrderId = $pddOrderId;
54
	}
55
56
	public function setOrderId($orderId)
57
	{
58
		$this->orderId = $orderId;
59
	}
60
61
	public function setPassengerInfos($passengerInfos)
62
	{
63
		$this->passengerInfos = $passengerInfos;
64
	}
65
66
}
67
68
class PddTrainCancelChangeRequest_PassengerInfosItem extends PopBaseJsonEntity
69
{
70
71
	public function __construct()
72
	{
73
74
	}
75
76
	/**
77
	* @JsonProperty(String, "new_sub_order_Id")
78
	*/
79
	private $newSubOrderId;
80
81
	/**
82
	* @JsonProperty(String, "old_sub_order_id")
83
	*/
84
	private $oldSubOrderId;
85
86
	public function setNewSubOrderId($newSubOrderId)
87
	{
88
		$this->newSubOrderId = $newSubOrderId;
89
	}
90
91
	public function setOldSubOrderId($oldSubOrderId)
92
	{
93
		$this->oldSubOrderId = $oldSubOrderId;
94
	}
95
96
}
97