proxy = $proxy; $this->proxy_auth = $proxy_auth; $this->proxy_user_password = $proxy_user_password; } public function makeReqOpt() { $reqOpt = new RequestOptions(); if ($this->proxy !== null) { $reqOpt->proxy = $this->proxy; } if ($this->proxy_auth !== null) { $reqOpt->proxy_auth = $this->proxy_auth; } if ($this->proxy_user_password !== null) { $reqOpt->proxy_user_password = $this->proxy_user_password; } return $reqOpt; } }