src/AbstractTransport.php
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();
    }
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();
    }
Set Params

@param array $params
@return static