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

AlipayTradeRefundQueryRequest   A

Complexity

Total Complexity 18

Size/Duplication

Total Lines 111
Duplicated Lines 100 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 111
loc 111
ccs 0
cts 45
cp 0
rs 10
c 0
b 0
f 0
wmc 18
lcom 1
cbo 0

18 Methods

Rating   Name   Duplication   Size   Complexity  
A setBizContent() 5 5 1
A getBizContent() 4 4 1
A getApiMethodName() 4 4 1
A setNotifyUrl() 4 4 1
A getNotifyUrl() 4 4 1
A setReturnUrl() 4 4 1
A getReturnUrl() 4 4 1
A getApiParas() 4 4 1
A getTerminalType() 4 4 1
A setTerminalType() 4 4 1
A getTerminalInfo() 4 4 1
A setTerminalInfo() 4 4 1
A getProdCode() 4 4 1
A setProdCode() 4 4 1
A setApiVersion() 4 4 1
A getApiVersion() 4 4 1
A setNeedEncrypt() 6 6 1
A getNeedEncrypt() 4 4 1

How to fix   Duplicated Code   

Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

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