Pimcore\Model\Tool\Lock::getInstance PHP Method

getInstance() protected static method

protected static getInstance ( ) : Lock
return Lock
    protected static function getInstance()
    {
        if (!self::$instance) {
            self::$instance = new self();
        }
        return self::$instance;
    }