| 1 | <?php |
||
| 10 | trait ResponseDecorator |
||
| 11 | { |
||
| 12 | use MessageDecorator { |
||
| 13 | getMessage as getResponse; |
||
| 14 | } |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Exchanges the underlying response with another. |
||
| 18 | * |
||
| 19 | * @param ResponseInterface $response |
||
| 20 | * |
||
| 21 | * @return self |
||
| 22 | */ |
||
| 23 | 1 | public function withResponse(ResponseInterface $response) |
|
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | 1 | public function getStatusCode() |
|
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | */ |
||
| 42 | 1 | public function withStatus($code, $reasonPhrase = '') |
|
| 49 | |||
| 50 | /** |
||
| 51 | * {@inheritdoc} |
||
| 52 | */ |
||
| 53 | 1 | public function getReasonPhrase() |
|
| 57 | } |
||
| 58 |