code: public function replaceParams(array $params)
      {
          if (!isset($this->configs[$this->currentParamType])) {
              $this->configs[$this->currentParamType] = [];
          }
  
          $this->inProcessingLoop = true;
          foreach ($params as $key => $paramValue) {
              $this->setParam($key, $paramValue);
          }
  
          $this->inProcessingLoop = false;
  
          return $this->buildConfigClient();
      }
docs: Set Params
  
  @param array $params
  @return static