From 18415fc7eef5ce2e3d16ba8b9c4077ad7cc630f3 Mon Sep 17 00:00:00 2001 From: Arjan Keeman Date: Thu, 22 Sep 2016 10:45:27 +0200 Subject: Increase testability by providing getters. --- lib/Client.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/lib/Client.php b/lib/Client.php index c14344a..d5f997b 100644 --- a/lib/Client.php +++ b/lib/Client.php @@ -48,6 +48,38 @@ class Client // These are the supported HTTP verbs $this->methods = ['delete', 'get', 'patch', 'post', 'put']; } + + /** + * @return string + */ + public function getHost() + { + return $this->host; + } + + /** + * @return array + */ + public function getHeaders() + { + return $this->headers; + } + + /** + * @return string|null + */ + public function getVersion() + { + return $this->version; + } + + /** + * @return array + */ + public function getPath() + { + return $this->path; + } /** * Make a new Client object -- cgit v1.1