public function MortgageCalculatorCalculation::__construct in Real Estate Mortgage Calculator 8
Construct.
@Param int $loan_amount
- a loan amount
@Param int $mortgage_rate
- a mortgage rate
@Param int $years_to_pay
- years to pay
@Param string $desired_display
- possible values 'monthly' or 'yearly'
File
- src/
MortgageCalculatorCalculation.php, line 50
Class
- MortgageCalculatorCalculation
- MortgageCalculatorCalculation.
Namespace
Drupal\mortgage_calculatorCode
public function __construct($loan_amount, $mortgage_rate, $years_to_pay, $desired_display) {
$this->loanAmount = $loan_amount;
$this->mortgageRate = $mortgage_rate;
$this->yearsToPay = $years_to_pay;
$this->desiredDisplay = $desired_display;
}