_coursePurchase)) { $this->_coursePurchase = new CoursePurchase(); } return $this->_coursePurchase; } public function failedTransaction(): FailedTransaction { if (is_null($this->_failedTransaction)) { $this->_failedTransaction = new FailedTransaction(); } return $this->_failedTransaction; } public function offlinePurchase(): OfflinePurchase { if (is_null($this->_offlinePurchase)) { $this->_offlinePurchase = new OfflinePurchase(); } return $this->_offlinePurchase; } public function courseCompletion(): CourseCompletion { if (is_null($this->_courseCompletion)) { $this->_courseCompletion = new CourseCompletion(); } return $this->_courseCompletion; } }