allCourse)) { $this->allCourse = new AllCourseView(); } return $this->allCourse; } public function singleCourse(): SingleCourseView { if (is_null($this->singleCourse)) { $this->singleCourse = new SingleCourseView(); } return $this->singleCourse; } public function thankyou(): ThankyouView { if (is_null($this->thankyou)) { $this->thankyou = new ThankyouView(); } return $this->thankyou; } public function dashboardIframe(): DashboardIframeView { if(is_null($this->dashboardIframe)) { $this->dashboardIframe = new DashboardIframeView(); } return $this->dashboardIframe; } public static function instance() { if (is_null(self::$_instance)) { self::$_instance = new self(); } return self::$_instance; } }