| Total Complexity | 4 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class WalletService |
||
| 10 | { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Consider the fee that the system will receive. |
||
| 14 | * |
||
| 15 | * @param Wallet $wallet |
||
| 16 | * @param int $amount |
||
| 17 | * @return int |
||
| 18 | */ |
||
| 19 | 16 | public function fee(Wallet $wallet, int $amount): int |
|
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * The amount of checks for errors |
||
| 30 | * |
||
| 31 | * @param int $amount |
||
| 32 | * @throws |
||
| 33 | */ |
||
| 34 | 30 | public function checkAmount(int $amount): void |
|
| 42 |