Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | final class Tariff |
||
10 | { |
||
11 | /** |
||
12 | * @JMS\SerializedName("rate") |
||
13 | * @JMS\Type("int") |
||
14 | * @var int |
||
15 | */ |
||
16 | private $cost; |
||
17 | |||
18 | /** |
||
19 | * @JMS\SerializedName("vat") |
||
20 | * @JMS\Type("int") |
||
21 | * @var int |
||
22 | */ |
||
23 | private $vat; |
||
24 | |||
25 | public function __construct(int $cost, int $vat) |
||
26 | { |
||
27 | $this->cost = $cost; |
||
28 | $this->vat = $vat; |
||
29 | } |
||
30 | |||
31 | public function getCost(): int |
||
32 | { |
||
33 | return $this->cost; |
||
34 | } |
||
35 | |||
36 | public function getVat(): int |
||
39 | } |
||
40 | } |
||
41 |