/** * Return investment as object. * @return Investment */ public function GetInvestmentObj() { if ($this->_InvestmentObj == null) { $this->_InvestmentObj = Investments::GetInvestment($this->GetInvestmentId()); } return $this->_InvestmentObj; }
/** * Returns a investment object from the database by ID. * @param $id Investments Id. * @return Investment */ public function GetInvestment($id) { return Investments::GetInvestment($id); }