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