/** * @return string */ public function getTimeInYears() { return $this->time->toYears(); }
/** * @return string */ public function getAnnuityPeriodLengthInYears() { return $this->annuityPeriodLength->toYears(); }
/** * @return string [Length of each of the debt's compounding periods in years as a string] */ public function getDebtPeriodLengthInYears() { return $this->debtPeriodLength->toYears(); }
public function testYearsFromTimeSpan() { $this->assertEquals(1.75, $this->timeSpan->toYears()); }