public static function getInstance(): Stats
    {
        if (self::$instance instanceof Stats) {
            return self::$instance;
        }
        self::$instance = new Stats();
        self::$instance->exporter = new NoopExporter();

        return self::$instance;
    }
public static function getInstance(): Stats
    {
        if (self::$instance instanceof Stats) {
            return self::$instance;
        }
        self::$instance = new Stats();
        self::$instance->exporter = new NoopExporter();

        return self::$instance;
    }
public static function getInstance ( ) : Stats { if ( self :: $ instance instanceof Stats ) { return self :: $ instance ; } self :: $ instance = new Stats ( ) ; self :: $ instance -> exporter = new NoopExporter ( ) ; return self :: $ instance ; }
Retrieve Stats instance.

@return Stats
Retrieve Stats instance .