<?php
if ( ! defined( 'ABSPATH' ) ) exit; 
/**
 *  Royal Shop Singleton Pattern.
 *
 * @package Wpzita
 */

/**
 * Class Z_COMPANION_Royal_Shop_Singleton
 */
class Z_COMPANION_Royal_Shop_Singleton{
	/**
	 * Call this method to get singleton
	 */
	public static function instance() {
		static $instance = false;
		if ( $instance === false ) {
			// Late static binding (PHP 5.3+)
			$instance = new static();
		}

		return $instance;
	}

	/**
	 * Make constructor private, so nobody can call "new Class".
	 */
	private function __construct() {}

	/**
	 * Make clone magic method private, so nobody can clone instance.
	 */
	private function __clone() {}

	/**
	 * Make sleep magic method private, so nobody can serialize instance.
	 */
	public function __sleep() {}

	/**
	 * Make wakeup magic method private, so nobody can unserialize instance.
	 */
	public function __wakeup() {}

}
