HEX
Server: Apache
System: Linux p3plzcpnl476737.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: p8pyefaexf70 (9161224)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //home/p8pyefaexf70/public_html/wp-content/plugins/shopengine/traits/singleton-page.php
<?php

namespace ShopEngine\Traits;

use ShopEngine\Core\Builders\Templates;

/**
 * Singleton trait
 * get instance
 *
 * @since 1.0.0
 */
trait Singleton_Page {

	private static $instance;
	private $config;

	public static function instance() {
		if(!self::$instance) {
			self::$instance = new self();
			self::$instance->config = Templates::get_template_types()[self::$instance->page_type];
		}

		return self::$instance;
	}
}