Passed
Push — main ( 5c90a5...a0fff1 )
by Iain
04:55
created

ChargeBack   A

Complexity

Total Complexity 16

Size/Duplication

Total Lines 96
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 25
dl 0
loc 96
rs 10
c 1
b 0
f 0
wmc 16

16 Methods

Rating   Name   Duplication   Size   Complexity  
A setCustomer() 0 3 1
A setExternalReference() 0 3 1
A setPayment() 0 3 1
A getUpdatedAt() 0 3 1
A getPayment() 0 3 1
A getExternalReference() 0 3 1
A setReason() 0 3 1
A getCustomer() 0 3 1
A getStatus() 0 3 1
A getCreatedAt() 0 3 1
A setId() 0 3 1
A setUpdatedAt() 0 3 1
A getId() 0 3 1
A setStatus() 0 3 1
A getReason() 0 3 1
A setCreatedAt() 0 3 1
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
use Parthenon\Billing\Enum\ChargeBackReason;
18
use Parthenon\Billing\Enum\ChargeBackStatus;
19
20
class ChargeBack
21
{
22
    private $id;
23
24
    private string $externalReference;
25
26
    private CustomerInterface $customer;
27
28
    private Payment $payment;
29
30
    private ChargeBackStatus $status;
31
32
    private ChargeBackReason $reason;
33
34
    private \DateTimeInterface $createdAt;
35
36
    private \DateTimeInterface $updatedAt;
37
38
    public function getId()
39
    {
40
        return $this->id;
41
    }
42
43
    public function setId($id): void
44
    {
45
        $this->id = $id;
46
    }
47
48
    public function getExternalReference(): string
49
    {
50
        return $this->externalReference;
51
    }
52
53
    public function setExternalReference(string $externalReference): void
54
    {
55
        $this->externalReference = $externalReference;
56
    }
57
58
    public function getCustomer(): CustomerInterface
59
    {
60
        return $this->customer;
61
    }
62
63
    public function setCustomer(CustomerInterface $customer): void
64
    {
65
        $this->customer = $customer;
66
    }
67
68
    public function getPayment(): Payment
69
    {
70
        return $this->payment;
71
    }
72
73
    public function setPayment(Payment $payment): void
74
    {
75
        $this->payment = $payment;
76
    }
77
78
    public function getStatus(): ChargeBackStatus
79
    {
80
        return $this->status;
81
    }
82
83
    public function setStatus(ChargeBackStatus $status): void
84
    {
85
        $this->status = $status;
86
    }
87
88
    public function getReason(): ChargeBackReason
89
    {
90
        return $this->reason;
91
    }
92
93
    public function setReason(ChargeBackReason $reason): void
94
    {
95
        $this->reason = $reason;
96
    }
97
98
    public function getCreatedAt(): \DateTimeInterface
99
    {
100
        return $this->createdAt;
101
    }
102
103
    public function setCreatedAt(\DateTimeInterface $createdAt): void
104
    {
105
        $this->createdAt = $createdAt;
106
    }
107
108
    public function getUpdatedAt(): \DateTimeInterface
109
    {
110
        return $this->updatedAt;
111
    }
112
113
    public function setUpdatedAt(\DateTimeInterface $updatedAt): void
114
    {
115
        $this->updatedAt = $updatedAt;
116
    }
117
}
118