Passed
Push — master ( e090d3...94c197 )
by Jared
37s
created

Refund::getRequestId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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