Passed
Push — master ( df1d8a...f27a5f )
by
unknown
36s
created

Refund::setRefundId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
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
    /**
32
     * @return string
33
     */
34
    public function getRefundId()
35
    {
36
        return $this->refundId;
37
    }
38
39
    /**
40
     * @return DateTime
41
     */
42
    public function getRefundedAt()
43
    {
44
        return $this->refundedAt;
45
    }
46
47
    /**
48
     * @return string
49
     */
50
    public function getMerchantReference()
51
    {
52
        return $this->merchantReference;
53
    }
54
55
    /**
56
     * @return Money
57
     */
58
    public function getAmount()
59
    {
60
        return $this->amount;
61
    }
62
63
    /**
64
     * @param string $refundId
65
     * @return $this
66
     */
67
    public function setRefundId($refundId)
68
    {
69
        $this->refundId = $refundId;
70
71
        return $this;
72
    }
73
74
    /**
75
     * @param DateTime $refundedAt
76
     * @return $this
77
     */
78
    public function setRefundedAt(DateTime $refundedAt)
79
    {
80
        $this->refundedAt = $refundedAt;
81
82
        return $this;
83
    }
84
85
    /**
86
     * @param string $merchantReference
87
     * @return $this
88
     */
89
    public function setMerchantReference($merchantReference)
90
    {
91
        $this->merchantReference = $merchantReference;
92
93
        return $this;
94
    }
95
96
    /**
97
     * @param Money $amount
98
     * @return $this
99
     */
100
    public function setAmount(Money $amount)
101
    {
102
        $this->amount = $amount;
103
104
        return $this;
105
    }
106
}
107