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