/** * Get singleton instance. */ public static function getInstance() { if (self::$objInstance == null) { self::$objInstance = new QRCodeGenerator(); } return self::$objInstance; }