Passed
Push — main ( 60af66...5c90a5 )
by Iain
04:40
created

ChargeBack   A

Complexity

Total Complexity 14

Size/Duplication

Total Lines 84
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 22
c 1
b 0
f 0
dl 0
loc 84
rs 10
wmc 14

14 Methods

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