public function registerPreRequestMiddleware(IPreRequestMiddleware $middleware): IOAuthClient
    {
        $this->preRequestMiddlewares[get_class($middleware)] = $middleware;

        return $this;
    }