mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-04 11:39:06 +00:00
27 lines
408 B
PHP
27 lines
408 B
PHP
<?php
|
|
|
|
namespace App\Services;
|
|
|
|
class BaseService
|
|
{
|
|
protected static $instance;
|
|
|
|
protected function __construct()
|
|
{
|
|
}
|
|
|
|
public static function getInstance()
|
|
{
|
|
if (static::$instance instanceof static) {
|
|
return self::$instance;
|
|
}
|
|
static::$instance = new static();
|
|
|
|
return self::$instance;
|
|
}
|
|
|
|
protected function __clone()
|
|
{
|
|
}
|
|
}
|