File "Singleton.php"

Full Path: /www/wwwroot/shphe-en.com/smsapi/api_sdk/vendor/phpunit/phpunit/tests/_files/Singleton.php
File size: 364 bytes
MIME-type: --
Charset: utf-8

<?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;
    }
}