<?php
namespace Peak;

final class Config {
    public static string $DB_HOST = 'localhost';
    public static string $DB_USER = 'kckltihgiz_wo35d3e';
    public static string $DB_PASS = '1975ax&AX';
    public static string $DB_NAME = 'kckltihgiz_wo35d3e';
    public static string $OWNER_EMAIL = 'lbd1596@gmail.com';
    public static string $SMTP_HOST = 'smtp.gmail.com';
    public static int $SMTP_PORT = 587;
    public static string $SMTP_USER = 'lbd1596@gmail.com';
    public static string $SMTP_PASS = 'spww nlsa dxps dbjs';
    public static string $SMTP_FROM = 'lbd1596@gmail.com';
    public static string $SMTP_FROM_NAME = 'Peak Platform';
    public static string $GROQ_API_KEY = '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';
    public static string $OPENROUTER_API_KEY = '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';
    public static string $GEMINI_API_KEY = 'AQ.Ab8RN6LhR_hXdlaDIr9uB9Kxt_FUePiI5kjh3iLBSP0M_28Atg';

    public static function init(): void {
        self::$DB_USER = getenv('DB_USER') ?: self::$DB_USER;
        self::$DB_PASS = getenv('DB_PASS') ?: self::$DB_PASS;
        self::$DB_NAME = getenv('DB_NAME') ?: self::$DB_NAME;
        self::$OWNER_EMAIL = getenv('OWNER_EMAIL') ?: self::$OWNER_EMAIL;
        self::$SMTP_HOST = getenv('SMTP_HOST') ?: self::$SMTP_HOST;
        self::$SMTP_PORT = (int)(getenv('SMTP_PORT') ?: self::$SMTP_PORT);
        self::$SMTP_USER = getenv('SMTP_USER') ?: self::$SMTP_USER;
        self::$SMTP_PASS = getenv('SMTP_PASS') ?: self::$SMTP_PASS;
        self::$SMTP_FROM = getenv('SMTP_FROM') ?: self::$SMTP_FROM;
        self::$SMTP_FROM_NAME = getenv('SMTP_FROM_NAME') ?: self::$SMTP_FROM_NAME;
        self::$GROQ_API_KEY = getenv('GROQ_API_KEY') ?: self::$GROQ_API_KEY;
        self::$OPENROUTER_API_KEY = getenv('OPENROUTER_API_KEY') ?: self::$OPENROUTER_API_KEY;
        self::$GEMINI_API_KEY = getenv('GEMINI_API_KEY') ?: self::$GEMINI_API_KEY;
    }
}
