| 1 | <?php |
||
| 27 | final class ResponseFactory implements ResponseFactoryInterface |
||
| 28 | { |
||
| 29 | /** |
||
| 30 | * Create a new response. |
||
| 31 | * |
||
| 32 | * @param int $code The HTTP status code. Defaults to 200. |
||
| 33 | * @param string $reasonPhrase The reason phrase to associate with the |
||
| 34 | * status code in the generated response. If |
||
| 35 | * none is provided, implementations MAY use |
||
| 36 | * the defaults as suggested in the HTTP |
||
| 37 | * specification. |
||
| 38 | * |
||
| 39 | * @return ResponseInterface |
||
| 40 | */ |
||
| 41 | 1 | public function createResponse( |
|
| 47 | } |
||
| 48 |