Passed
Push — master ( 67a5da...c35f7b )
by Jared
01:13
created

Refund   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 118
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 10
lcom 0
cbo 0
dl 0
loc 118
rs 10
c 0
b 0
f 0

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getRefundId() 0 4 1
A getRefundedAt() 0 4 1
A getMerchantReference() 0 4 1
A getAmount() 0 4 1
A getRequestId() 0 4 1
A setRefundId() 0 6 1
A setRefundedAt() 0 6 1
A setMerchantReference() 0 6 1
A setAmount() 0 6 1
A setRequestId() 0 6 1
1
<?php
2
3
namespace CultureKings\Afterpay\Model\Merchant;
4
5
use CultureKings\Afterpay\Model\Money;
6
use DateTime;
7
8
/**
9
 * Class Refund
10
 *
11
 * @package CultureKings\Afterpay\Model
12
 */
13
class Refund
14
{
15
    /**
16
     * @var string
17
     */
18
    protected $refundId;
19
    /**
20
     * @var DateTime
21
     */
22
    protected $refundedAt;
23
    /**
24
     * @var string
25
     */
26
    protected $merchantReference;
27
    /**
28
     * @var Money
29
     */
30
    protected $amount;
31
    /**
32
     * @var string
33
     */
34
    protected $requestId;
35
36
    /**
37
     * @return string
38
     */
39
    public function getRefundId()
40
    {
41
        return $this->refundId;
42
    }
43
44
    /**
45
     * @return DateTime
46
     */
47
    public function getRefundedAt()
48
    {
49
        return $this->refundedAt;
50
    }
51
52
    /**
53
     * @return string
54
     */
55
    public function getMerchantReference()
56
    {
57
        return $this->merchantReference;
58
    }
59
60
    /**
61
     * @return Money
62
     */
63
    public function getAmount()
64
    {
65
        return $this->amount;
66
    }
67
68
    /**
69
     * @return string
70
     */
71
    public function getRequestId()
72
    {
73
        return $this->requestId;
74
    }
75
76
    /**
77
     * @param string $refundId
78
     * @return $this
79
     */
80
    public function setRefundId($refundId)
81
    {
82
        $this->refundId = $refundId;
83
84
        return $this;
85
    }
86
87
    /**
88
     * @param DateTime $refundedAt
89
     * @return $this
90
     */
91
    public function setRefundedAt(DateTime $refundedAt)
92
    {
93
        $this->refundedAt = $refundedAt;
94
95
        return $this;
96
    }
97
98
    /**
99
     * @param string $merchantReference
100
     * @return $this
101
     */
102
    public function setMerchantReference($merchantReference)
103
    {
104
        $this->merchantReference = $merchantReference;
105
106
        return $this;
107
    }
108
109
    /**
110
     * @param Money $amount
111
     * @return $this
112
     */
113
    public function setAmount(Money $amount)
114
    {
115
        $this->amount = $amount;
116
117
        return $this;
118
    }
119
120
    /**
121
    * @param string $requestId
122
    * @return $this
123
    */
124
    public function setRequestId($requestId)
125
    {
126
        $this->requestId = $requestId;
127
128
        return $this;
129
    }
130
}
131