| 1 | <?php |
||
| 19 | final class ResponseFactory implements ResponseFactoryInterface, StatusCodeInterface{ |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Create a new response. |
||
| 23 | * |
||
| 24 | * @param int $code HTTP status code; defaults to 200 |
||
| 25 | * @param string $reasonPhrase Reason phrase to associate with status code |
||
| 26 | * in generated response; if none is provided implementations MAY use |
||
| 27 | * the defaults as suggested in the HTTP specification. |
||
| 28 | * |
||
| 29 | * @return \Psr\Http\Message\ResponseInterface|\chillerlan\HTTP\Psr7\Response |
||
| 30 | */ |
||
| 31 | public function createResponse(int $code = 200, string $reasonPhrase = ''):ResponseInterface{ |
||
| 34 | |||
| 35 | } |
||
| 36 |