File manager - Edit - /usr/local/prospamfilter/vendor/phpunit/phpunit/tests/_files/Singleton.php
Back
<?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; } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings