From 8ea1cd872f4e9d813310d4030da766f3a118b24d Mon Sep 17 00:00:00 2001 From: Shubham Tiwari Date: Fri, 17 Nov 2023 22:36:00 +0530 Subject: [PATCH 1/2] feat: added setHost for client --- lib/Client.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/lib/Client.php b/lib/Client.php index bf36535..7409a81 100644 --- a/lib/Client.php +++ b/lib/Client.php @@ -201,7 +201,7 @@ class Client * @var bool */ protected $verifySSLCerts; - + /** * @var bool */ @@ -253,6 +253,20 @@ public function getHost() return $this->host; } + /** + * Set host + * + * @param string $host + * + * @return Client + */ + public function setHost(string $host) + { + $this->host = $host; + + return $this; + } + /** * @return array */ From f0cb7cd76df96ec0d5f6cca65aa44522b64beac9 Mon Sep 17 00:00:00 2001 From: Shubham Date: Fri, 17 Nov 2023 22:47:13 +0530 Subject: [PATCH 2/2] fix: Update Client.php --- lib/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Client.php b/lib/Client.php index 7409a81..b6bcd4a 100644 --- a/lib/Client.php +++ b/lib/Client.php @@ -263,7 +263,7 @@ public function getHost() public function setHost(string $host) { $this->host = $host; - + return $this; }