public function setConnectTimeout($seconds) { $this->connectTimeout = (int) max($seconds, 0); return $this; }