Completed
Push — master ( c52910...66a65c )
by lyu
02:53 queued 47s
created

ExtendParams   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 53
ccs 0
cts 33
cp 0
rs 10
c 0
b 0
f 0
wmc 8
lcom 1
cbo 0

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getExtendParams() 0 6 2
A getSysServiceProviderId() 0 4 1
A setSysServiceProviderId() 0 5 1
A getHbFqNum() 0 4 1
A setHbFqNum() 0 5 1
A getHbFqSellerPercent() 0 4 1
A setHbFqSellerPercent() 0 5 1
1
<?php
2
3
namespace Kaylyu\Alipay\F2fpay\Base\Model\Builder;
4
5
6
class ExtendParams
7
{
8
    // 系统商编号
9
    private $sysServiceProviderId;
10
11
    //使用花呗分期要进行的分期数,非必填项
12
    private $hbFqNum;
13
14
    //使用花呗分期需要卖家承担的手续费比例的百分值
15
    private $hbFqSellerPercent;
16
17
    private $extendParamsArr = array();
18
19
    public function getExtendParams()
20
    {
21
        if (!empty($this->extendParamsArr)) {
22
            return $this->extendParamsArr;
23
        }
24
    }
25
26
    public function getSysServiceProviderId()
27
    {
28
        return $this->sysServiceProviderId;
29
    }
30
31
    public function setSysServiceProviderId($sysServiceProviderId)
32
    {
33
        $this->sysServiceProviderId = $sysServiceProviderId;
34
        $this->extendParamsArr['sys_service_provider_id'] = $sysServiceProviderId;
35
    }
36
37
    public function getHbFqNum()
38
    {
39
        return $this->hbFqNum;
40
    }
41
42
    public function setHbFqNum($hbFqNum)
43
    {
44
        $this->hbFqNum = $hbFqNum;
45
        $this->extendParamsArr['hb_fq_num'] = $hbFqNum;
46
    }
47
48
    public function getHbFqSellerPercent()
49
    {
50
        return $this->hbFqSellerPercent;
51
    }
52
53
    public function setHbFqSellerPercent($hbFqSellerPercent)
54
    {
55
        $this->hbFqSellerPercent = $hbFqSellerPercent;
56
        $this->extendParamsArr['hb_fq_seller_percent'] = $hbFqSellerPercent;
57
    }
58
}