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