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

PddWaybillCancelRequest   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 getDataType() 0 3 1
A __construct() 0 2 1
A setWpCode() 0 3 1
A getType() 0 3 1
A setUserParams() 0 4 1
A setWaybillCode() 0 3 1
A getVersion() 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 PddWaybillCancelRequest extends PopBaseHttpRequest
8
{
9
    public function __construct()
10
	{
11
12
	}
13
	/**
14
	* @JsonProperty(String, "waybill_code")
15
	*/
16
	private $waybillCode;
17
18
	/**
19
	* @JsonProperty(String, "wp_code")
20
	*/
21
	private $wpCode;
22
23
	protected function setUserParams(&$params)
24
	{
25
		$this->setUserParam($params, "waybill_code", $this->waybillCode);
26
		$this->setUserParam($params, "wp_code", $this->wpCode);
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.waybill.cancel";
43
	}
44
45
	public function setWaybillCode($waybillCode)
46
	{
47
		$this->waybillCode = $waybillCode;
48
	}
49
50
	public function setWpCode($wpCode)
51
	{
52
		$this->wpCode = $wpCode;
53
	}
54
55
}
56