| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class Balance extends AbstractEntity |
||
| 6 | { |
||
| 7 | protected float $balance; |
||
| 8 | protected string $currency_code; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @return float |
||
| 12 | */ |
||
| 13 | public function getBalance(): float |
||
| 14 | { |
||
| 15 | return $this->balance; |
||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param float $balance |
||
| 20 | */ |
||
| 21 | public function setBalance(float $balance): void |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | public function getCurrencyCode(): string |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param string $currency_code |
||
| 36 | */ |
||
| 37 | public function setCurrencyCode(string $currency_code): void |
||
| 42 |