D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
www
/
vendor
/
phpunit
/
phpunit
/
tests
/
_files
/
Filename :
Singleton.php
back
Copy
<?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; } }