/** * @return string */ public function getTimeInMonths() { return $this->time->toMonths(); }
/** * @return string */ public function getAnnuityPeriodLengthInMonths() { return $this->annuityPeriodLength->toMonths(); }
/** * @return string [Length of each of the debt's compounding periods in months as a string] */ public function getDebtPeriodLengthInMonths() { return $this->debtPeriodLength->toMonths(); }
public function testMonthsFromTimeSpan() { $this->assertEquals(21, $this->timeSpan->toMonths()); }