| 1 | <?php |
||
| 8 | class PaymentAmountCalculator implements PaymentAmountCalculatorInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @see http://www.financeformulas.net/Annuity_Payment_Formula.html |
||
| 12 | * @param float $presentValue |
||
| 13 | * @param float $ratePerPeriod |
||
| 14 | * @param float $numberOfPeriods |
||
| 15 | * @return float |
||
| 16 | */ |
||
| 17 | public function getPaymentAmount(float $presentValue, float $ratePerPeriod, float $numberOfPeriods): float |
||
| 28 | } |