Skip to content

phpdoc for the new method #149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 11, 2022
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions src/Formatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
*
* @author Márk Sági-Kazár <[email protected]>
*
* The formatResponseForRequest method will be added to this interface in the next major version, replacing the formatRequest method.
* Meanwhile, callers SHOULD check the formatter for the existence of formatResponseForRequest and call that if available.
*
* @method string formatResponseForRequest(ResponseInterface $response, RequestInterface $request) Formats a response in context of its request.
*/
interface Formatter
Expand Down
4 changes: 3 additions & 1 deletion src/Formatter/CurlCommandFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ public function formatResponse(ResponseInterface $response)
}

/**
* {@inheritdoc}
* Formats a response in context of its request.
*
* @return string
*/
public function formatResponseForRequest(ResponseInterface $response, RequestInterface $request)
{
Expand Down
4 changes: 3 additions & 1 deletion src/Formatter/FullHttpMessageFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ public function formatResponse(ResponseInterface $response)
}

/**
* {@inheritdoc}
* Formats a response in context of its request.
*
* @return string
*/
public function formatResponseForRequest(ResponseInterface $response, RequestInterface $request)
{
Expand Down
4 changes: 3 additions & 1 deletion src/Formatter/SimpleFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ public function formatResponse(ResponseInterface $response)
}

/**
* {@inheritdoc}
* Formats a response in context of its request.
*
* @return string
*/
public function formatResponseForRequest(ResponseInterface $response, RequestInterface $request)
{
Expand Down