# hostinger/3.0.9/includes/Hostinger.php

Hostinger Tools, version 3.0.9. 52 lines.

- Page: https://pluginprobe.com/plugins/hostinger/3.0.9/code/includes/Hostinger.php
- Raw: https://pluginprobe.com/plugins/hostinger/3.0.9/raw/includes/Hostinger.php
- Modified: 2024-07-12T07:26:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/hostinger/3.0.9/code/includes/Hostinger.php#L10-L20`.

```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';
	}
}

```
