38        $type = FinancialConstants::PAYMENT_END_OF_PERIOD
 
   55            return $e->getMessage();
 
   59        if ($start < 1 || $start > 
$end) {
 
   67            if (is_string($ipmt)) {
 
  103        $type = FinancialConstants::PAYMENT_END_OF_PERIOD
 
  120            return $e->getMessage();
 
  124        if ($start < 1 || $start > 
$end) {
 
  132            if (is_string($ppmt)) {
 
An exception for terminatinating execution or to throw for unit testing.
static validatePeriodType($type)
static validateRate($rate)
static validatePresentValue($presentValue)
static interest( $rate, $periods, $presentValue, $start, $end, $type=FinancialConstants::PAYMENT_END_OF_PERIOD)
CUMIPMT.
static principal( $rate, $periods, $presentValue, $start, $end, $type=FinancialConstants::PAYMENT_END_OF_PERIOD)
CUMPRINC.
static payment( $interestRate, $period, $numberOfPeriods, $presentValue, $futureValue=0, $type=FinancialConstants::PAYMENT_END_OF_PERIOD)
IPMT.
static interestPayment( $interestRate, $period, $numberOfPeriods, $presentValue, $futureValue=0, $type=FinancialConstants::PAYMENT_END_OF_PERIOD)
PPMT.
static validateInt($value)
static flattenSingleValue($value='')
Convert an array to a single scalar value by extracting the first element.