/** * Returns the *Singleton* instance of this class. * * @return Singleton The *Singleton* instance. */ public static function getInstance() { if (!isset(self::$instance)) { self::$instance = new DBSingleTonUtility(); } return self::$instance; }
public function processDBConnection() { $dbObj = DBSingleTonUtility::getInstance(); $dbObj->initializeVar(); return $dbObj->doDBConnection(); }