1 | <?php |
||
8 | class RequestUtility |
||
9 | { |
||
10 | private $content; |
||
11 | private $post; |
||
12 | private $get; |
||
13 | |||
14 | /** |
||
15 | * @return string |
||
16 | */ |
||
17 | 18 | public function getContent(): string |
|
25 | |||
26 | /** |
||
27 | * @param $content |
||
28 | */ |
||
29 | 12 | public function setContent(string $content) |
|
33 | |||
34 | /** |
||
35 | * @return mixed |
||
36 | */ |
||
37 | 10 | public function getPost() |
|
45 | |||
46 | /** |
||
47 | * @return mixed |
||
48 | */ |
||
49 | 18 | public function getPostedBody() |
|
60 | |||
61 | /** |
||
62 | * @param array $post |
||
63 | */ |
||
64 | 5 | public function setPost(array $post) |
|
68 | |||
69 | /** |
||
70 | * @return mixed |
||
71 | */ |
||
72 | 11 | public function getGet() |
|
80 | |||
81 | /** |
||
82 | * @param array $get |
||
83 | */ |
||
84 | 5 | public function setGet(array $get) |
|
88 | |||
89 | /** |
||
90 | * @return mixed |
||
91 | */ |
||
92 | 11 | public function getServerProtocol() |
|
96 | } |
||
97 |