<?php

defined('HOSTCMS') || exit('HostCMS: access denied.');

/**
 * 1PS.
 *
 * @package HostCMS
 * @subpackage 1PS
 * @version 6.x
 * @copyright © 2005-2017, https://www.hostcms.ru
 */
class Oneps_Controller
{
	/**
	 * The singleton instances.
	 * @var mixed
	 */
	static public $instance = NULL;

	/**
	 * Register an existing instance as a singleton.
	 * @return object
	 */
	static public function instance()
	{
		if (is_null(self::$instance))
		{
			self::$instance = new self();
		}

		return self::$instance;
	}
}