HEX
Server: LiteSpeed
System: Linux eko108.isimtescil.net 4.18.0-477.21.1.lve.1.el8.x86_64 #1 SMP Tue Sep 5 23:08:35 UTC 2023 x86_64
User: uyarreklamcomtr (11202)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/trait-yith-wcwl-singleton-trait.php.tar
wp-content/plugins/yith-woocommerce-wishlist/includes/traits/trait-yith-wcwl-singleton-trait.php000064400000001223151546315670037602 0ustar00var/www/vhosts/uyarreklam.com.tr/httpdocs<?php
/**
 * Singleton class trait.
 *
 * @package YITH\Wishlist\Traits
 */

defined( 'YITH_WCWL' ) || exit; // Exit if accessed directly

/**
 * Singleton trait.
 */
trait YITH_WCWL_Singleton_Trait {
	/**
	 * The single instance of the class.
	 *
	 * @var self
	 */
	protected static $instance = null;

	/**
	 * Constructor
	 *
	 * @return void
	 */
	protected function __construct() {
	}

	/**
	 * Get class instance.
	 *
	 * @return self
	 */
	final public static function get_instance() {
		return ! is_null( static::$instance ) ? static::$instance : static::$instance = new static();
	}

	/**
	 * Prevent cloning.
	 */
	private function __clone() {
	}
}