| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 81.82% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 5 | class Money |
||
| 6 | { |
||
| 7 | protected string $currencyCode; |
||
| 8 | |||
| 9 | protected string $value; |
||
| 10 | |||
| 11 | 5 | public function __construct(string $currencyCode, string $value) |
|
| 12 | { |
||
| 13 | 5 | $this->currencyCode = $currencyCode; |
|
| 14 | 5 | $this->value = $value; |
|
| 15 | 5 | } |
|
| 16 | |||
| 17 | public function getCurrencyCode(): string |
||
| 20 | } |
||
| 21 | |||
| 22 | 3 | public function getValue(): string |
|
| 23 | { |
||
| 24 | 3 | return $this->value; |
|
| 25 | } |
||
| 26 | |||
| 27 | 5 | public function toArray(): array |
|
| 32 | ]; |
||
| 33 | } |
||
| 35 |