HEX
Server: Apache
System: Linux nc-ph-0707-26.instaforreviews.com 3.10.0-1160.119.1.el7.tuxcare.els13.x86_64 #1 SMP Fri Nov 22 06:29:45 UTC 2024 x86_64
User: qirgxuo4hkuv (1004)
PHP: 8.3.27
Disabled: NONE
Upload Files
File: /home/qirgxuo4hkuv/public_html/shovago.com/wp-content/plugins/tidio-live-chat/src/Config.php
<?php

namespace TidioLiveChat;

if (!defined('WPINC')) {
    die('File loaded directly. Exiting.');
}

final class Config
{
    /**
     * @var array|null
     */
    private static $config = null;

    /**
     * @return string
     */
    public static function getApiUrl()
    {
        return self::getConfig()['tidio_api_url'];
    }

    /**
     * @return string
     */
    public static function getPanelUrl()
    {
        return self::getConfig()['tidio_panel_url'];
    }

    /**
     * @return string
     */
    public static function getWidgetUrl()
    {
        return self::getConfig()['tidio_widget_url'];
    }

    /**
     * @return string
     */
    public static function getDebugLogPath()
    {
        return self::getConfig()['debug_log_path'];
    }

    /**
     * @return array<string, string>
     */
    private static function getConfig()
    {
        if (self::$config === null) {
            self::$config = require __DIR__ . '/../config.php';
        }

        return self::$config;
    }
}