Singleton.php in Zircon Profile 8.0
Same filename and directory in other branches
File
vendor/phpunit/phpunit/tests/_files/Singleton.phpView source
<?php
class Singleton {
private static $uniqueInstance = null;
protected function __construct() {
}
private final function __clone() {
}
public static function getInstance() {
if (self::$uniqueInstance === null) {
self::$uniqueInstance = new self();
}
return self::$uniqueInstance;
}
}