From 9ad6ac1edf1ae2a683d8cc57f02441f0c0ceb91e Mon Sep 17 00:00:00 2001 From: Dennis Hemeier Date: Wed, 6 Dec 2017 18:19:51 +0100 Subject: [PATCH 1/2] Add missing annotations --- src/Client.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index e39d0a6..135d06a 100644 --- a/src/Client.php +++ b/src/Client.php @@ -168,6 +168,7 @@ public function __construct(array $options = array(), GuzzleClient $guzzleClient * Set the options. * * @param array $options + * @throws MissingOptionException */ public function setOptions(array $options) { @@ -277,7 +278,8 @@ public function getGuzzleClient() * @param mixed $body * @param boolean $namespace * @param string $apiVersion - * @return array + * @return array|string + * @throws \Exception */ public function sendRequest($method, $uri, $query = [], $body = [], $namespace = true, $apiVersion = null) { From d8ed820c0f2bca80c7ad87f32012e35497887189 Mon Sep 17 00:00:00 2001 From: Dennis Hemeier Date: Wed, 6 Dec 2017 19:12:26 +0100 Subject: [PATCH 2/2] Add setNamespace() to Client --- src/Client.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Client.php b/src/Client.php index 135d06a..aefb374 100644 --- a/src/Client.php +++ b/src/Client.php @@ -200,6 +200,16 @@ public function setOptions(array $options) } } + /** + * Set namespace. + * + * @param string $namespace + */ + public function setNamespace($namespace) + { + $this->namespace = $namespace; + } + /** * Check if we're using guzzle 6. *