ThreadedFactory::getInstance PHP Метод

getInstance() публичный статический Метод

public static getInstance ( ) : ThreadedFactory
Результат ThreadedFactory
    public static function getInstance()
    {
        if (self::$instance === null) {
            global $threadedFactoryInstance;
            if ($threadedFactoryInstance instanceof ThreadedFactory) {
                self::$instance = $threadedFactoryInstance;
            } else {
                new ThreadedFactory();
            }
        }
        return self::$instance;
    }