Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
13 | final class TaxRate extends Base implements TaxRateInterface |
||
14 | { |
||
15 | private string $name = ''; |
||
16 | private float $rate = 0; |
||
17 | |||
18 | /** |
||
19 | * @return string |
||
20 | */ |
||
21 | public function getName(): string |
||
22 | { |
||
23 | return $this->name; |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @param string $name |
||
28 | */ |
||
29 | public function setName(string $name): void |
||
30 | { |
||
31 | $this->name = $name; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @return float|int |
||
36 | */ |
||
37 | public function getRate(): float|int |
||
38 | { |
||
39 | return $this->rate; |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @param float|int $rate |
||
44 | */ |
||
45 | public function setRate(float|int $rate): void |
||
48 | } |
||
49 | } |
||
50 |