1 | <?php |
||
12 | class Request extends Message implements RequestInterface |
||
13 | { |
||
14 | const DEFAULT_REQUEST_TARGET = "/"; |
||
15 | |||
16 | /** |
||
17 | * Request Method SHOULD be one of GET,PUT,POST,PATCH,DELETE |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $method = 'GET'; |
||
21 | |||
22 | /** |
||
23 | * @var UriInterface |
||
24 | */ |
||
25 | protected $uri; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $requestTarget; |
||
31 | |||
32 | /** |
||
33 | * @inheritdoc |
||
34 | */ |
||
35 | public function getRequestTarget() |
||
53 | |||
54 | /** |
||
55 | * @inheritdoc |
||
56 | */ |
||
57 | public function getMethod() |
||
61 | |||
62 | /** |
||
63 | * @inheritdoc |
||
64 | */ |
||
65 | public function withRequestTarget($requestTarget) |
||
72 | |||
73 | /** |
||
74 | * @inheritdoc |
||
75 | */ |
||
76 | public function withMethod($method) |
||
83 | |||
84 | /** |
||
85 | * @inheritdoc |
||
86 | */ |
||
87 | public function getUri() |
||
91 | |||
92 | /** |
||
93 | * @inheritdoc |
||
94 | */ |
||
95 | public function withUri(UriInterface $uri, $preserveHost = false) |
||
110 | } |
||
111 |