public static function getInstance(HttpClient $transport = null)
    {
        if (is_null(self::$client)) {
            self::$client = new self();
        
            if (! is_null($transport)) {
                self::$client->setTransport($transport);
            }
        }
        
        return self::$client;
    }