summaryrefslogtreecommitdiffstats
path: root/lib/Client.php
diff options
context:
space:
mode:
authorElmer Thomas <elmer@ThinkingSerious.com>2016-09-27 08:58:05 -0700
committerGitHub <noreply@github.com>2016-09-27 08:58:05 -0700
commit865e525f189bc8866a769c4878faaacf5ebd26ce (patch)
tree19417149b6b226e3109291baaf1e74f9d4c966f2 /lib/Client.php
parent137c48baecd8870349a08c010c1a855578db7817 (diff)
parent6b07cdc9a3c78523d22f45a6b304e2eb2c88a088 (diff)
downloadphp-http-client-865e525f189bc8866a769c4878faaacf5ebd26ce.zip
php-http-client-865e525f189bc8866a769c4878faaacf5ebd26ce.tar.gz
php-http-client-865e525f189bc8866a769c4878faaacf5ebd26ce.tar.bz2
Merge pull request #9 from akeeman/patch-1
Add getters for certain properties
Diffstat (limited to 'lib/Client.php')
-rw-r--r--lib/Client.php32
1 files changed, 32 insertions, 0 deletions
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