HEX
Server: Apache
System: Linux web5.visualcom.es 4.18.0-477.21.1.lve.1.el8.x86_64 #1 SMP Tue Sep 5 23:08:35 UTC 2023 x86_64
User: ensaco.es (10019)
PHP: 8.3.32
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/ensaco.es/httpdocs/wp-content/plugins/wp-hummingbird/core/api/class-api.php
<?php
/**
 * Hummingbird API class.
 *
 * @package Hummingbird
 */

namespace Hummingbird\Core\Api;

use Hummingbird\Core\Api\Service\Cloudflare;
use Hummingbird\Core\Api\Service\Hosting;
use Hummingbird\Core\Api\Service\Minify;
use Hummingbird\Core\Api\Service\Performance;
use Hummingbird\Core\Api\Service\Uptime;
use Hummingbird\Core\Api\Service\Varnish;
use Hummingbird\Core\Api\Service\CriticalCss;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Class API
 */
class API {
	/**
	 * Uptime API.
	 *
	 * @var Uptime
	 */
	public $uptime;

	/**
	 * Performance API.
	 *
	 * @var Performance
	 */
	public $performance;

	/**
	 * Cloudflare API.
	 *
	 * @var Cloudflare
	 */
	public $cloudflare;

	/**
	 * Minify API.
	 *
	 * @var Minify
	 */
	public $minify;

	/**
	 * Varnish API.
	 *
	 * @var Varnish
	 */
	public $varnish;

	/**
	 * Hub API.
	 *
	 * @var Hub
	 */
	public $hub;

	/**
	 * REST API.
	 *
	 * @var Rest
	 */
	public $rest;

	/**
	 * Hosting/Hub API.
	 *
	 * @since 3.3.1
	 *
	 * @var Hosting
	 */
	public $hosting;

	/**
	 * CriticalCss API.
	 *
	 * @var CriticalCss
	 */
	public $critical_css;

	/**
	 * API constructor.
	 */
	public function __construct() {
		$this->uptime       = new Uptime();
		$this->performance  = new Performance();
		$this->cloudflare   = new Cloudflare();
		$this->minify       = new Minify();
		$this->varnish      = new Varnish();
		$this->critical_css = new CriticalCss();

		// Init Hub endpoints.
		$this->hub = new Hub();

		// Init REST endpoints.
		$this->rest = new Rest();

		$this->hosting = new Hosting();
	}
}