HEX
Server: LiteSpeed
System: Linux cluster02.load-balancer.x2.network 4.18.0-553.51.1.lve.1.el8.x86_64 #1 SMP Wed May 14 14:34:57 UTC 2025 x86_64
User: kbdhpghp (1098)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home/kbdhpghp/www/aqualander/wp-content/plugins/hostinger/includes/Hostinger.php
<?php

namespace Hostinger;

use Hostinger\Bootstrap;

defined( 'ABSPATH' ) || exit;

class Hostinger {
    protected string $plugin_name = 'Hostinger';
    protected string $version;

    /**
     * @return void
     */
    public function bootstrap(): void {
        $this->version = $this->get_plugin_version();
        $bootstrap     = new Bootstrap();
        $bootstrap->run();
    }

    /**
     * @return void
     */
    public function run(): void {
        $this->bootstrap();
    }
    /** PHPCS:disable WordPress.NamingConventions.PrefixAllGlobals.VariableConstantNameFound */
    /**
     * Define constant
     *
     * @param string $name Constant name.
     * @param string|bool $value Constant value.
     */
    private function define( string $name, $value ): void {
        if ( ! defined( $name ) ) {
            define( $name, $value );
        }
    }
    /** PHPCS:enable */
    /**
     * @return string
     */
    private function get_plugin_version(): string {
        if ( defined( 'HOSTINGER_VERSION' ) ) {
            return HOSTINGER_VERSION;
        }

        return '1.0.0';
    }
}