| Total Complexity | 6 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 1 | Features | 2 |
| 1 | <?php |
||
| 5 | class Money |
||
| 6 | { |
||
| 7 | protected string $currencyCode; |
||
| 8 | |||
| 9 | protected string $value; |
||
| 10 | |||
| 11 | 13 | public function __construct(string $currencyCode, string $value) |
|
| 15 | 13 | } |
|
| 16 | |||
| 17 | 1 | public function getCurrencyCode(): string |
|
| 20 | } |
||
| 21 | |||
| 22 | 1 | public function setCurrencyCode(string $currencyCode): self |
|
| 23 | { |
||
| 24 | 1 | $this->currencyCode = $currencyCode; |
|
| 25 | |||
| 26 | 1 | return $this; |
|
| 27 | } |
||
| 28 | |||
| 29 | 4 | public function getValue(): string |
|
| 32 | } |
||
| 33 | |||
| 34 | 1 | public function setValue(string $value): self |
|
| 39 | } |
||
| 40 | |||
| 41 | 10 | public function toArray(): array |
|
| 49 |