code: public function setTimeouts($connectionTimeout, $timeout)
      {
          $this->connectionTimeout = (int)$connectionTimeout;
          $this->timeout = (int)$timeout;
      }
docs: Set the connection and response timeouts.
  
  @param int $connectionTimeout
  @param int $timeout