summaryrefslogtreecommitdiffstats
path: root/lib/SparkPost/SparkPostResponse.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/SparkPost/SparkPostResponse.php')
-rw-r--r--lib/SparkPost/SparkPostResponse.php18
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/SparkPost/SparkPostResponse.php b/lib/SparkPost/SparkPostResponse.php
index e6a8fd1..402a2b2 100644
--- a/lib/SparkPost/SparkPostResponse.php
+++ b/lib/SparkPost/SparkPostResponse.php
@@ -13,13 +13,29 @@ class SparkPostResponse implements ResponseInterface
private $response;
/**
+ * Array with the request values sent.
+ */
+ private $request;
+
+ /**
* set the response to be wrapped.
*
* @param ResponseInterface $response
*/
- public function __construct(ResponseInterface $response)
+ public function __construct(ResponseInterface $response, $request = null)
{
$this->response = $response;
+ $this->request = $request;
+ }
+
+ /**
+ * Returns the request values sent.
+ *
+ * @return array $request
+ */
+ public function getRequest()
+ {
+ return $this->request;
}
/**