summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/SparkPost/SparkPost.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/SparkPost/SparkPost.php b/lib/SparkPost/SparkPost.php
index 00b3d6f..05be7f4 100644
--- a/lib/SparkPost/SparkPost.php
+++ b/lib/SparkPost/SparkPost.php
@@ -242,6 +242,8 @@ class SparkPost
* Sets $httpClient to be used for request.
*
* @param HttpClient|HttpAsyncClient $httpClient - the client to be used for request
+ *
+ * @return SparkPost
*/
public function setHttpClient($httpClient)
{
@@ -250,12 +252,16 @@ class SparkPost
}
$this->httpClient = $httpClient;
+
+ return $this;
}
/**
* Sets the options from the param and defaults for the SparkPost object.
*
* @param array $options - either an string API key or an array of options
+ *
+ * @return SparkPost
*/
public function setOptions($options)
{
@@ -277,6 +283,8 @@ class SparkPost
$this->options[$option] = $value;
}
}
+
+ return $this;
}
/**