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

PddTrainGrabCancelRequest   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
c 1
b 0
f 0
dl 0
loc 46
rs 10
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getType() 0 3 1
A setPddOrderId() 0 3 1
A getDataType() 0 3 1
A __construct() 0 2 1
A setUserParams() 0 4 1
A getVersion() 0 3 1
A setOrderId() 0 3 1
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 PddTrainGrabCancelRequest extends PopBaseHttpRequest
8
{
9
    public function __construct()
10
	{
11
12
	}
13
	/**
14
	* @JsonProperty(String, "order_id")
15
	*/
16
	private $orderId;
17
18
	/**
19
	* @JsonProperty(String, "pdd_order_id")
20
	*/
21
	private $pddOrderId;
22
23
	protected function setUserParams(&$params)
24
	{
25
		$this->setUserParam($params, "order_id", $this->orderId);
26
		$this->setUserParam($params, "pdd_order_id", $this->pddOrderId);
27
28
	}
29
30
	public function getVersion()
31
	{
32
		return "V1";
33
	}
34
35
	public function getDataType()
36
	{
37
		return "JSON";
38
	}
39
40
	public function getType()
41
	{
42
		return "pdd.train.grab.cancel";
43
	}
44
45
	public function setOrderId($orderId)
46
	{
47
		$this->orderId = $orderId;
48
	}
49
50
	public function setPddOrderId($pddOrderId)
51
	{
52
		$this->pddOrderId = $pddOrderId;
53
	}
54
55
}
56