Passed
Push — main ( 350a1e...a10163 )
by Iain
05:08
created

Refund::getExternalReference()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * Copyright Iain Cambridge 2020-2023.
7
 *
8
 * Use of this software is governed by the Business Source License included in the LICENSE file and at https://getparthenon.com/docs/next/license.
9
 *
10
 * Change Date: TBD ( 3 years after 2.2.0 release )
11
 *
12
 * On the date above, in accordance with the Business Source License, use of this software will be governed by the open source license specified in the LICENSE file.
13
 */
14
15
namespace Parthenon\Billing\Entity;
16
17
class Refund
18
{
19
    private $id;
20
21
    private CustomerInterface $customer;
22
23
    private Payment $payment;
24
25
    private int $amount;
26
27
    private string $currency;
28
29
    private string $status;
30
31
    private string $externalReference;
32
33
    private BillingAdminInterface $billingAdmin;
34
35
    private ?string $reason = null;
36
37
    private \DateTimeInterface $createdAt;
38
39
    /**
40
     * @return mixed
41
     */
42
    public function getId()
43
    {
44
        return $this->id;
45
    }
46
47
    /**
48
     * @param mixed $id
49
     */
50
    public function setId($id): void
51
    {
52
        $this->id = $id;
53
    }
54
55
    public function getCustomer(): CustomerInterface
56
    {
57
        return $this->customer;
58
    }
59
60
    public function setCustomer(CustomerInterface $customer): void
61
    {
62
        $this->customer = $customer;
63
    }
64
65
    public function getPayment(): Payment
66
    {
67
        return $this->payment;
68
    }
69
70
    public function setPayment(Payment $payment): void
71
    {
72
        $this->payment = $payment;
73
    }
74
75
    public function getAmount(): int
76
    {
77
        return $this->amount;
78
    }
79
80
    public function setAmount(int $amount): void
81
    {
82
        $this->amount = $amount;
83
    }
84
85
    public function getCurrency(): string
86
    {
87
        return $this->currency;
88
    }
89
90
    public function setCurrency(string $currency): void
91
    {
92
        $this->currency = $currency;
93
    }
94
95
    public function getStatus(): string
96
    {
97
        return $this->status;
98
    }
99
100
    public function setStatus(string $status): void
101
    {
102
        $this->status = $status;
103
    }
104
105
    public function getBillingAdmin(): BillingAdminInterface
106
    {
107
        return $this->billingAdmin;
108
    }
109
110
    public function setBillingAdmin(BillingAdminInterface $billingAdmin): void
111
    {
112
        $this->billingAdmin = $billingAdmin;
113
    }
114
115
    public function getReason(): ?string
116
    {
117
        return $this->reason;
118
    }
119
120
    public function setReason(?string $reason): void
121
    {
122
        $this->reason = $reason;
123
    }
124
125
    public function getCreatedAt(): \DateTimeInterface
126
    {
127
        return $this->createdAt;
128
    }
129
130
    public function setCreatedAt(\DateTimeInterface $createdAt): void
131
    {
132
        $this->createdAt = $createdAt;
133
    }
134
135
    public function getExternalReference(): string
136
    {
137
        return $this->externalReference;
138
    }
139
140
    public function setExternalReference(string $externalReference): void
141
    {
142
        $this->externalReference = $externalReference;
143
    }
144
}
145