HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/hcv/wp-content/plugins/wordpress-seo-premium/src/wordpress/wrapper.php
<?php

namespace Yoast\WP\SEO\Premium\WordPress;

use WPSEO_Premium_Prominent_Words_Support;
use WPSEO_Premium_Prominent_Words_Unindexed_Post_Query;
use WPSEO_Replace_Vars;
use WPSEO_Shortlinker;

/**
 * Wrapper class for Premium classes.
 *
 * This consists of factory functions to inject Premium classes into the dependency container.
 */
class Wrapper {

	/**
	 * Wrapper method for returning the WPSEO_Replace_Vars object for use in dependency injection.
	 *
	 * @return WPSEO_Replace_Vars The WPSEO_Replace_Vars global.
	 */
	public static function get_replace_vars() {
		static $instance;

		if ( \is_null( $instance ) ) {
			$instance = new WPSEO_Replace_Vars();
		}

		return $instance;
	}

	/**
	 * Wrapper method for returning the WPSEO_Premium_Prominent_Words_Unindexed_Post_Query object for use in dependency injection.
	 *
	 * @return WPSEO_Premium_Prominent_Words_Unindexed_Post_Query The WPSEO_Premium_Prominent_Words_Unindexed_Post_Query global.
	 */
	public static function get_prominent_words_unindex_post_query() {
		static $instance;

		if ( \is_null( $instance ) ) {
			$instance = new WPSEO_Premium_Prominent_Words_Unindexed_Post_Query();
		}

		return $instance;
	}

	/**
	 * Wrapper method for returning the WPSEO_Premium_Prominent_Words_Support object for use in dependency injection.
	 *
	 * @return WPSEO_Premium_Prominent_Words_Support The WPSEO_Premium_Prominent_Words_Support global.
	 */
	public static function get_prominent_words_support() {
		static $instance;

		if ( \is_null( $instance ) ) {
			$instance = new WPSEO_Premium_Prominent_Words_Support();
		}

		return $instance;
	}

	/**
	 * Wrapper method for returning the WPSEO_Shortlinker object for use in dependency injection.
	 *
	 * @return WPSEO_Shortlinker The WPSEO_Shortlinker global.
	 */
	public static function get_shortlinker() {
		static $instance;

		if ( \is_null( $instance ) ) {
			$instance = new WPSEO_Shortlinker();
		}

		return $instance;
	}
}