Passed
Push — master ( cac2ee...302558 )
by Jared
02:42
created

Refund::setRefundedAt()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
namespace CultureKings\Afterpay\Model\InStore;
3
4
use CultureKings\Afterpay\Model\Money;
5
use DateTimeInterface;
6
7
/**
8
 * Class Refund
9
 * @package CultureKings\Afterpay\Model\InStore
10
 */
11
class Refund
12
{
13
    /**
14
     * @var string
15
     */
16
    protected $requestId;
17
    /**
18
     * @var DateTimeInterface
19
     */
20
    protected $requestedAt;
21
    /**
22
     * @var DateTimeInterface
23
     */
24
    protected $refundedAt;
25
    /**
26
     * @var string
27
     */
28
    protected $merchantReference;
29
    /**
30
     * @var string
31
     */
32
    protected $orderId;
33
    /**
34
     * @var string
35
     */
36
    protected $orderMerchantReference;
37
    /**
38
     * @var Money
39
     */
40
    protected $amount;
41
42
    /**
43
     * @return string
44
     */
45
    public function getRequestId()
46
    {
47
        return $this->requestId;
48
    }
49
50
    /**
51
     * @param string $requestId
52
     *
53
     * @return Refund
54
     */
55
    public function setRequestId($requestId)
56
    {
57
        $this->requestId = $requestId;
58
59
        return $this;
60
    }
61
62
    /**
63
     * @return DateTimeInterface
64
     */
65
    public function getRequestedAt()
66
    {
67
        return $this->requestedAt;
68
    }
69
70
    /**
71
     * @param DateTimeInterface $requestedAt
72
     *
73
     * @return Refund
74
     */
75
    public function setRequestedAt(DateTimeInterface $requestedAt)
76
    {
77
        $this->requestedAt = $requestedAt;
78
79
        return $this;
80
    }
81
82
    /**
83
     * @return DateTimeInterface
84
     */
85
    public function getRefundedAt()
86
    {
87
        return $this->refundedAt;
88
    }
89
90
    /**
91
     * @param DateTimeInterface $refundedAt
92
     *
93
     * @return Refund
94
     */
95
    public function setRefundedAt(DateTimeInterface $refundedAt)
96
    {
97
        $this->refundedAt = $refundedAt;
98
99
        return $this;
100
    }
101
102
    /**
103
     * @return string
104
     */
105
    public function getMerchantReference()
106
    {
107
        return $this->merchantReference;
108
    }
109
110
    /**
111
     * @param string $merchantReference
112
     *
113
     * @return Refund
114
     */
115
    public function setMerchantReference($merchantReference)
116
    {
117
        $this->merchantReference = $merchantReference;
118
119
        return $this;
120
    }
121
122
    /**
123
     * @return string
124
     */
125
    public function getOrderId()
126
    {
127
        return $this->orderId;
128
    }
129
130
    /**
131
     * @param string $orderId
132
     *
133
     * @return Refund
134
     */
135
    public function setOrderId($orderId)
136
    {
137
        $this->orderId = $orderId;
138
139
        return $this;
140
    }
141
142
    /**
143
     * @return string
144
     */
145
    public function getOrderMerchantReference()
146
    {
147
        return $this->orderMerchantReference;
148
    }
149
150
    /**
151
     * @param string $orderMerchantReference
152
     *
153
     * @return Refund
154
     */
155
    public function setOrderMerchantReference($orderMerchantReference)
156
    {
157
        $this->orderMerchantReference = $orderMerchantReference;
158
159
        return $this;
160
    }
161
162
    /**
163
     * @return Money
164
     */
165
    public function getAmount()
166
    {
167
        return $this->amount;
168
    }
169
170
    /**
171
     * @param Money $amount
172
     *
173
     * @return Refund
174
     */
175
    public function setAmount(Money $amount)
176
    {
177
        $this->amount = $amount;
178
179
        return $this;
180
    }
181
}
182