| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/excellentvege/wp-content/plugins/wp-coder/classes/Publisher/ |
Upload File : |
<?php
namespace WPCoder\Publisher;
defined( 'ABSPATH' ) || exit;
class Singleton {
private static $instance;
private array $value = [];
private function __construct() {}
public static function getInstance() {
if (null === static::$instance) {
static::$instance = new static();
}
return static::$instance;
}
public function setValue($key, $value) {
$this->value[$key] = $value;
}
public function getValue(): array {
return $this->value;
}
}