Dashboard
PHP:
8.2.30
OS:
Linux
User:
dh_nv8b2m
/
/
usr
/
local
/
wp
/
vendor
/
phpunit
/
phpunit
/
tests
/
_files
📤 Upload
📝 New File
📁 New Folder
Close
Editing: Singleton.php
<?php class Singleton { private static $uniqueInstance = null; protected function __construct() { } final private function __clone() { } public static function getInstance() { if (self::$uniqueInstance === null) { self::$uniqueInstance = new self; } return self::$uniqueInstance; } }
Save
Cancel