Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php declare(strict_types = 1); |
||
5 | class Price |
||
6 | { |
||
7 | |||
8 | /** @var int */ |
||
9 | private $amount; |
||
10 | |||
11 | /** @var Currency */ |
||
12 | private $currency; |
||
13 | |||
14 | 8 | public function __construct( |
|
15 | int $amount, |
||
16 | Currency $currency |
||
17 | ) |
||
18 | { |
||
19 | 8 | $this->amount = $amount; |
|
20 | 8 | $this->currency = $currency; |
|
21 | 8 | } |
|
22 | |||
23 | 5 | public function getAmount(): int |
|
24 | { |
||
25 | 5 | return $this->amount; |
|
26 | } |
||
27 | |||
28 | 5 | public function getCurrency(): Currency |
|
31 | } |
||
32 | |||
33 | } |
||
34 |