Passed
Push — main ( 8887d0...3fb85e )
by Iain
18:40
created

TierComponent::getFlatFee()   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
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * Copyright (C) 2020-2024 Iain Cambridge
7
 *
8
 *     This program is free software: you can redistribute it and/or modify
9
 *     it under the terms of the GNU General Public License as published by
10
 *     the Free Software Foundation, either version 3 of the License, or
11
 *     (at your option) any later version.
12
 *
13
 *     This program is distributed in the hope that it will be useful,
14
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 *     GNU General Public License for more details.
17
 *
18
 *     You should have received a copy of the GNU General Public License
19
 *     along with this program.  If not, see <https://www.gnu.org/licenses/>.
20
 */
21
22
namespace Parthenon\Billing\Entity;
23
24
class TierComponent implements TierComponentInterface
25
{
26
    private $id;
27
28
    private int $firstUnit;
29
30
    private ?int $lastUnit;
31
32
    private int $unitPrice;
33
34
    private int $flatFee;
35
36
    private Price $price;
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 getFirstUnit(): int
49
    {
50
        return $this->firstUnit;
51
    }
52
53
    public function setFirstUnit(int $firstUnit): void
54
    {
55
        $this->firstUnit = $firstUnit;
56
    }
57
58
    public function getLastUnit(): ?int
59
    {
60
        return $this->lastUnit;
61
    }
62
63
    public function setLastUnit(?int $lastUnit): void
64
    {
65
        $this->lastUnit = $lastUnit;
66
    }
67
68
    public function getUnitPrice(): int
69
    {
70
        return $this->unitPrice;
71
    }
72
73
    public function setUnitPrice(int $unitPrice): void
74
    {
75
        $this->unitPrice = $unitPrice;
76
    }
77
78
    public function getFlatFee(): int
79
    {
80
        return $this->flatFee;
81
    }
82
83
    public function setFlatFee(int $flatFee): void
84
    {
85
        $this->flatFee = $flatFee;
86
    }
87
88
    public function getPrice(): Price
89
    {
90
        return $this->price;
91
    }
92
93
    public function setPrice(Price $price): void
94
    {
95
        $this->price = $price;
96
    }
97
}
98