Product   A
last analyzed

Complexity

Total Complexity 30

Size/Duplication

Total Lines 256
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
eloc 46
c 2
b 0
f 1
dl 0
loc 256
rs 10
wmc 30

30 Methods

Rating   Name   Duplication   Size   Complexity  
A setPrice() 0 3 1
A getCustomValue1() 0 3 1
A getQuantity() 0 3 1
A getNotes() 0 3 1
A setTaxName3() 0 3 1
A getCustomValue4() 0 3 1
A setCost() 0 3 1
A getTaxRate3() 0 3 1
A getTaxRate2() 0 3 1
A getCustomValue3() 0 3 1
A setProductKey() 0 3 1
A setTaxRate2() 0 3 1
A setTaxName2() 0 3 1
A getTaxName3() 0 3 1
A setCustomValue2() 0 3 1
A setCustomValue4() 0 3 1
A getTaxRate1() 0 3 1
A setCustomValue3() 0 3 1
A getTaxName1() 0 3 1
A setTaxRate3() 0 3 1
A setNotes() 0 3 1
A setCustomValue1() 0 3 1
A setTaxName1() 0 3 1
A setQuantity() 0 3 1
A getProductKey() 0 3 1
A getTaxName2() 0 3 1
A getCost() 0 3 1
A getCustomValue2() 0 3 1
A setTaxRate1() 0 3 1
A getPrice() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace InvoiceNinjaModule\Model;
6
7
use InvoiceNinjaModule\Model\Interfaces\ProductInterface;
8
9
/**
10
 * Class Product
11
 * @codeCoverageIgnore
12
 */
13
final class Product extends Base implements ProductInterface
14
{
15
    private string $productKey = '';
16
    private string $notes = '';
17
    private float $cost = 0;
18
    private float $price = 0;
19
    private float $quantity = 0;
20
    private string $taxName1 = '';
21
    private float $taxRate1 = 0;
22
    private string $taxName2 = '';
23
    private float $taxRate2 = 0;
24
    private string $taxName3 = '';
25
    private float $taxRate3 = 0;
26
    private string $customValue1 = '';
27
    private string $customValue2 = '';
28
    private string $customValue3 = '';
29
    private string $customValue4 = '';
30
31
    /**
32
     * @return string
33
     */
34
    public function getProductKey(): string
35
    {
36
        return $this->productKey;
37
    }
38
39
    /**
40
     * @param string $productKey
41
     */
42
    public function setProductKey(string $productKey): void
43
    {
44
        $this->productKey = $productKey;
45
    }
46
47
    /**
48
     * @return string
49
     */
50
    public function getNotes(): string
51
    {
52
        return $this->notes;
53
    }
54
55
    /**
56
     * @param string $notes
57
     */
58
    public function setNotes(string $notes): void
59
    {
60
        $this->notes = $notes;
61
    }
62
63
    /**
64
     * @return float|int
65
     */
66
    public function getCost(): float|int
67
    {
68
        return $this->cost;
69
    }
70
71
    /**
72
     * @param float|int $cost
73
     */
74
    public function setCost(float|int $cost): void
75
    {
76
        $this->cost = $cost;
77
    }
78
79
    /**
80
     * @return float|int
81
     */
82
    public function getPrice(): float|int
83
    {
84
        return $this->price;
85
    }
86
87
    /**
88
     * @param float|int $price
89
     */
90
    public function setPrice(float|int $price): void
91
    {
92
        $this->price = $price;
93
    }
94
95
    /**
96
     * @return float|int
97
     */
98
    public function getQuantity(): float|int
99
    {
100
        return $this->quantity;
101
    }
102
103
    /**
104
     * @param float|int $quantity
105
     */
106
    public function setQuantity(float|int $quantity): void
107
    {
108
        $this->quantity = $quantity;
109
    }
110
111
    /**
112
     * @return string
113
     */
114
    public function getTaxName1(): string
115
    {
116
        return $this->taxName1;
117
    }
118
119
    /**
120
     * @param string $taxName1
121
     */
122
    public function setTaxName1(string $taxName1): void
123
    {
124
        $this->taxName1 = $taxName1;
125
    }
126
127
    /**
128
     * @return float|int
129
     */
130
    public function getTaxRate1(): float|int
131
    {
132
        return $this->taxRate1;
133
    }
134
135
    /**
136
     * @param float|int $taxRate1
137
     */
138
    public function setTaxRate1(float|int $taxRate1): void
139
    {
140
        $this->taxRate1 = $taxRate1;
141
    }
142
143
    /**
144
     * @return string
145
     */
146
    public function getTaxName2(): string
147
    {
148
        return $this->taxName2;
149
    }
150
151
    /**
152
     * @param string $taxName2
153
     */
154
    public function setTaxName2(string $taxName2): void
155
    {
156
        $this->taxName2 = $taxName2;
157
    }
158
159
    /**
160
     * @return float|int
161
     */
162
    public function getTaxRate2(): float|int
163
    {
164
        return $this->taxRate2;
165
    }
166
167
    /**
168
     * @param float|int $taxRate2
169
     */
170
    public function setTaxRate2(float|int $taxRate2): void
171
    {
172
        $this->taxRate2 = $taxRate2;
173
    }
174
175
    /**
176
     * @return string
177
     */
178
    public function getTaxName3(): string
179
    {
180
        return $this->taxName3;
181
    }
182
183
    /**
184
     * @param string $taxName3
185
     */
186
    public function setTaxName3(string $taxName3): void
187
    {
188
        $this->taxName3 = $taxName3;
189
    }
190
191
    /**
192
     * @return float|int
193
     */
194
    public function getTaxRate3(): float|int
195
    {
196
        return $this->taxRate3;
197
    }
198
199
    /**
200
     * @param float|int $taxRate3
201
     */
202
    public function setTaxRate3(float|int $taxRate3): void
203
    {
204
        $this->taxRate3 = $taxRate3;
205
    }
206
207
    /**
208
     * @return string
209
     */
210
    public function getCustomValue1(): string
211
    {
212
        return $this->customValue1;
213
    }
214
215
    /**
216
     * @param string $customValue1
217
     */
218
    public function setCustomValue1(string $customValue1): void
219
    {
220
        $this->customValue1 = $customValue1;
221
    }
222
223
    /**
224
     * @return string
225
     */
226
    public function getCustomValue2(): string
227
    {
228
        return $this->customValue2;
229
    }
230
231
    /**
232
     * @param string $customValue2
233
     */
234
    public function setCustomValue2(string $customValue2): void
235
    {
236
        $this->customValue2 = $customValue2;
237
    }
238
239
    /**
240
     * @return string
241
     */
242
    public function getCustomValue3(): string
243
    {
244
        return $this->customValue3;
245
    }
246
247
    /**
248
     * @param string $customValue3
249
     */
250
    public function setCustomValue3(string $customValue3): void
251
    {
252
        $this->customValue3 = $customValue3;
253
    }
254
255
    /**
256
     * @return string
257
     */
258
    public function getCustomValue4(): string
259
    {
260
        return $this->customValue4;
261
    }
262
263
    /**
264
     * @param string $customValue4
265
     */
266
    public function setCustomValue4(string $customValue4): void
267
    {
268
        $this->customValue4 = $customValue4;
269
    }
270
}
271