Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
8 | final class Amount |
||
9 | { |
||
10 | /** |
||
11 | * @var int |
||
12 | * @SerializedName("Value") |
||
13 | * @Type("integer") |
||
14 | */ |
||
15 | private $value; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | * @SerializedName("CurrencyCode") |
||
20 | */ |
||
21 | private $currencyCode; |
||
22 | |||
23 | public function __construct(int $value, string $currencyCode) |
||
24 | { |
||
25 | $this->value = $value; |
||
26 | $this->currencyCode = $currencyCode; |
||
27 | } |
||
28 | |||
29 | public function getValue(): int |
||
30 | { |
||
31 | return $this->value; |
||
32 | } |
||
33 | |||
34 | public function getCurrencyCode(): string |
||
37 | } |
||
38 | } |
||
39 |