Skip to content
This repository was archived by the owner on May 13, 2023. It is now read-only.

reorder message factory parameter to have least important last #6

Merged
merged 1 commit into from
Oct 30, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/MessageFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,36 +26,36 @@ interface MessageFactory
*
* @param string $method
* @param string|UriInterface $uri
* @param string $protocolVersion
* @param array $headers
* @param resource|string|StreamInterface|null $body
* @param string $protocolVersion
*
* @return RequestInterface
*/
public function createRequest(
$method,
$uri,
$protocolVersion = '1.1',
array $headers = [],
$body = null
$body = null,
$protocolVersion = '1.1'
);

/**
* Creates a response
*
* @param integer $statusCode
* @param string|null $reasonPhrase
* @param string $protocolVersion
* @param array $headers
* @param resource|string|StreamInterface|null $body
* @param string $protocolVersion
*
* @return ResponseInterface
*/
public function createResponse(
$statusCode = 200,
$reasonPhrase = null,
$protocolVersion = '1.1',
array $headers = [],
$body = null
$body = null,
$protocolVersion = '1.1'
);
}