Passed
Push — main ( 0705b8...350a1e )
by Iain
04:41
created

Refund::getStatus()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
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 BillingAdminInterface $billingAdmin;
32
33
    private ?string $reason = null;
34
35
    private \DateTimeInterface $createdAt;
36
37
    /**
38
     * @return mixed
39
     */
40
    public function getId()
41
    {
42
        return $this->id;
43
    }
44
45
    /**
46
     * @param mixed $id
47
     */
48
    public function setId($id): void
49
    {
50
        $this->id = $id;
51
    }
52
53
    public function getCustomer(): CustomerInterface
54
    {
55
        return $this->customer;
56
    }
57
58
    public function setCustomer(CustomerInterface $customer): void
59
    {
60
        $this->customer = $customer;
61
    }
62
63
    public function getPayment(): Payment
64
    {
65
        return $this->payment;
66
    }
67
68
    public function setPayment(Payment $payment): void
69
    {
70
        $this->payment = $payment;
71
    }
72
73
    public function getAmount(): int
74
    {
75
        return $this->amount;
76
    }
77
78
    public function setAmount(int $amount): void
79
    {
80
        $this->amount = $amount;
81
    }
82
83
    public function getCurrency(): string
84
    {
85
        return $this->currency;
86
    }
87
88
    public function setCurrency(string $currency): void
89
    {
90
        $this->currency = $currency;
91
    }
92
93
    public function getStatus(): string
94
    {
95
        return $this->status;
96
    }
97
98
    public function setStatus(string $status): void
99
    {
100
        $this->status = $status;
101
    }
102
103
    public function getBillingAdmin(): BillingAdminInterface
104
    {
105
        return $this->billingAdmin;
106
    }
107
108
    public function setBillingAdmin(BillingAdminInterface $billingAdmin): void
109
    {
110
        $this->billingAdmin = $billingAdmin;
111
    }
112
113
    public function getReason(): ?string
114
    {
115
        return $this->reason;
116
    }
117
118
    public function setReason(?string $reason): void
119
    {
120
        $this->reason = $reason;
121
    }
122
123
    public function getCreatedAt(): \DateTimeInterface
124
    {
125
        return $this->createdAt;
126
    }
127
128
    public function setCreatedAt(\DateTimeInterface $createdAt): void
129
    {
130
        $this->createdAt = $createdAt;
131
    }
132
}
133