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

Refund   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 95
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 4
Bugs 1 Features 1
Metric Value
wmc 8
c 4
b 1
f 1
lcom 0
cbo 0
dl 0
loc 95
rs 10

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getRefundedAt() 0 4 1
A getMerchantReference() 0 4 1
A getAmount() 0 4 1
A setRefundedAt() 0 6 1
A setMerchantReference() 0 6 1
A setAmount() 0 6 1
A getRefundId() 0 4 1
A setRefundId() 0 6 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