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