1 | <?php |
||
10 | class ServerRequest extends Request implements ServerRequestInterface |
||
11 | { |
||
12 | private $serverParams; |
||
13 | private $cookieParams; |
||
14 | private $queryParams; |
||
15 | private $uploadedFiles; |
||
16 | private $parsedBody; |
||
17 | private $attributes = []; |
||
18 | |||
19 | 35 | public function __construct( |
|
39 | |||
40 | 13 | public function getServerParams(): array |
|
44 | |||
45 | 2 | public function getCookieParams(): array |
|
49 | |||
50 | 1 | public function withCookieParams(array $cookies): self |
|
56 | |||
57 | 2 | public function getQueryParams(): array |
|
61 | |||
62 | 1 | public function withQueryParams(array $query): self |
|
68 | |||
69 | 8 | public function getUploadedFiles(): array |
|
73 | |||
74 | 1 | public function withUploadedFiles(array $uploadedFiles): self |
|
80 | |||
81 | 2 | public function getParsedBody() |
|
85 | |||
86 | 1 | public function withParsedBody($data): self |
|
92 | |||
93 | 3 | public function getAttributes(): array |
|
97 | |||
98 | 2 | public function getAttribute($attribute, $default = null) |
|
102 | |||
103 | 2 | public function withAttribute($attribute, $value): self |
|
109 | |||
110 | 2 | public function withoutAttribute($attribute): self |
|
116 | } |