Test Failed
Push — master ( 89b4b9...cf2fd2 )
by lyu
01:50
created

AlipayTradeRefundQueryRequest::setNeedEncrypt()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 6
Ratio 100 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 6
loc 6
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Kaylyu\Alipay\F2fpay\Base\Aop\Request;
4
5 View Code Duplication
class AlipayTradeRefundQueryRequest
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
6
{
7
	/** 
8
	 * 统一收单交易退款查询
9
	 **/
10
	private $bizContent;
11
12
	private $apiParas = array();
13
	private $terminalType;
14
	private $terminalInfo;
15
	private $prodCode;
16
	private $apiVersion="1.0";
17
	private $notifyUrl;
18
	private $returnUrl;
19
    private $needEncrypt=false;
20
21
	
22
	public function setBizContent($bizContent)
23
	{
24
		$this->bizContent = $bizContent;
25
		$this->apiParas["biz_content"] = $bizContent;
26
	}
27
28
	public function getBizContent()
29
	{
30
		return $this->bizContent;
31
	}
32
33
	public function getApiMethodName()
34
	{
35
		return "alipay.trade.fastpay.refund.query";
36
	}
37
38
	public function setNotifyUrl($notifyUrl)
39
	{
40
		$this->notifyUrl=$notifyUrl;
41
	}
42
43
	public function getNotifyUrl()
44
	{
45
		return $this->notifyUrl;
46
	}
47
48
	public function setReturnUrl($returnUrl)
49
	{
50
		$this->returnUrl=$returnUrl;
51
	}
52
53
	public function getReturnUrl()
54
	{
55
		return $this->returnUrl;
56
	}
57
58
	public function getApiParas()
59
	{
60
		return $this->apiParas;
61
	}
62
63
	public function getTerminalType()
64
	{
65
		return $this->terminalType;
66
	}
67
68
	public function setTerminalType($terminalType)
69
	{
70
		$this->terminalType = $terminalType;
71
	}
72
73
	public function getTerminalInfo()
74
	{
75
		return $this->terminalInfo;
76
	}
77
78
	public function setTerminalInfo($terminalInfo)
79
	{
80
		$this->terminalInfo = $terminalInfo;
81
	}
82
83
	public function getProdCode()
84
	{
85
		return $this->prodCode;
86
	}
87
88
	public function setProdCode($prodCode)
89
	{
90
		$this->prodCode = $prodCode;
91
	}
92
93
	public function setApiVersion($apiVersion)
94
	{
95
		$this->apiVersion=$apiVersion;
96
	}
97
98
	public function getApiVersion()
99
	{
100
		return $this->apiVersion;
101
	}
102
103
  public function setNeedEncrypt($needEncrypt)
104
  {
105
106
     $this->needEncrypt=$needEncrypt;
107
108
  }
109
110
  public function getNeedEncrypt()
111
  {
112
    return $this->needEncrypt;
113
  }
114
115
}
116