Refund::getRefundedAt()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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