| 1 | <?php |
||
| 11 | trait RequestDecorator |
||
| 12 | { |
||
| 13 | use MessageDecorator { |
||
| 14 | getMessage as getRequest; |
||
| 15 | } |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Exchanges the underlying request with another. |
||
| 19 | * |
||
| 20 | * @param RequestInterface $request |
||
| 21 | * |
||
| 22 | * @return self |
||
| 23 | */ |
||
| 24 | 1 | public function withRequest(RequestInterface $request) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritdoc} |
||
| 34 | */ |
||
| 35 | 1 | public function getRequestTarget() |
|
| 39 | |||
| 40 | /** |
||
| 41 | * {@inheritdoc} |
||
| 42 | */ |
||
| 43 | 1 | public function withRequestTarget($requestTarget) |
|
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritdoc} |
||
| 53 | */ |
||
| 54 | 1 | public function getMethod() |
|
| 58 | |||
| 59 | /** |
||
| 60 | * {@inheritdoc} |
||
| 61 | */ |
||
| 62 | 1 | public function withMethod($method) |
|
| 69 | |||
| 70 | /** |
||
| 71 | * {@inheritdoc} |
||
| 72 | */ |
||
| 73 | 1 | public function getUri() |
|
| 77 | |||
| 78 | /** |
||
| 79 | * {@inheritdoc} |
||
| 80 | */ |
||
| 81 | 1 | public function withUri(UriInterface $uri, $preserveHost = false) |
|
| 88 | } |
||
| 89 |