public static function GetDatabaseConnection() { // Lazy create the singleton connection if (is_null(self::$singletonConnection)) { self::$singletonConnection = Database::connect(DATABASE_NAME, DATABASE_USER, DATABASE_PASSWORD, DATABASE_HOST); } // Return the singleton connection return self::$singletonConnection; }