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

PddTicketSkuRuleGetRequest   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 setUserParams() 0 4 1
A setOutRuleId() 0 3 1
A __construct() 0 2 1
A getVersion() 0 3 1
A getDataType() 0 3 1
A setRuleId() 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 PddTicketSkuRuleGetRequest extends PopBaseHttpRequest
8
{
9
    public function __construct()
10
	{
11
12
	}
13
	/**
14
	* @JsonProperty(String, "out_rule_id")
15
	*/
16
	private $outRuleId;
17
18
	/**
19
	* @JsonProperty(String, "rule_id")
20
	*/
21
	private $ruleId;
22
23
	protected function setUserParams(&$params)
24
	{
25
		$this->setUserParam($params, "out_rule_id", $this->outRuleId);
26
		$this->setUserParam($params, "rule_id", $this->ruleId);
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.ticket.sku.rule.get";
43
	}
44
45
	public function setOutRuleId($outRuleId)
46
	{
47
		$this->outRuleId = $outRuleId;
48
	}
49
50
	public function setRuleId($ruleId)
51
	{
52
		$this->ruleId = $ruleId;
53
	}
54
55
}
56