From b76e2ff898b23745d4c9aaee49eeb7d88f2896ab Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Thu, 2 Mar 2017 22:49:24 -0500 Subject: Updated mailgun plugin --- .../message-factory/src/ResponseFactory.php | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 inc/mailgun/php-http/message-factory/src/ResponseFactory.php (limited to 'inc/mailgun/php-http/message-factory/src/ResponseFactory.php') diff --git a/inc/mailgun/php-http/message-factory/src/ResponseFactory.php b/inc/mailgun/php-http/message-factory/src/ResponseFactory.php new file mode 100644 index 0000000..2411ed3 --- /dev/null +++ b/inc/mailgun/php-http/message-factory/src/ResponseFactory.php @@ -0,0 +1,35 @@ + + */ +interface ResponseFactory +{ + /** + * Creates a new PSR-7 response. + * + * @param int $statusCode + * @param string|null $reasonPhrase + * @param array $headers + * @param resource|string|StreamInterface|null $body + * @param string $protocolVersion + * + * @return ResponseInterface + */ + public function createResponse( + $statusCode = 200, + $reasonPhrase = null, + array $headers = [], + $body = null, + $protocolVersion = '1.1' + ); +} -- cgit v1.2.3