1 | <?php |
||
12 | class Request |
||
13 | { |
||
14 | /** |
||
15 | * @var Server |
||
16 | */ |
||
17 | public $server; |
||
18 | |||
19 | /** |
||
20 | * @var Session |
||
21 | */ |
||
22 | public $session; |
||
23 | |||
24 | /** |
||
25 | * @var Get |
||
26 | */ |
||
27 | public $get; |
||
28 | |||
29 | /** |
||
30 | * @var Post |
||
31 | */ |
||
32 | public $post; |
||
33 | |||
34 | /** |
||
35 | * @var Put |
||
36 | */ |
||
37 | public $put; |
||
38 | |||
39 | /** |
||
40 | * @var Delete |
||
41 | */ |
||
42 | public $delete; |
||
43 | |||
44 | /** |
||
45 | * @var File |
||
46 | */ |
||
47 | public $file; |
||
48 | |||
49 | /** |
||
50 | * @var Cookie |
||
51 | */ |
||
52 | public $cookie; |
||
53 | |||
54 | /** |
||
55 | * @var |
||
56 | */ |
||
57 | private $request; |
||
58 | |||
59 | /** |
||
60 | * @var Security |
||
61 | */ |
||
62 | private $security; |
||
63 | |||
64 | /** @var string */ |
||
65 | private $method; |
||
66 | |||
67 | /** @var array */ |
||
68 | private $params; |
||
69 | |||
70 | /** @var int */ |
||
71 | private $statusCode; |
||
|
|||
72 | |||
73 | /** @var string */ |
||
74 | private $responseMessage; |
||
75 | |||
76 | 21 | public function __construct(Dependency $dependency, Security $security) |
|
96 | |||
97 | 5 | public function getRequest() |
|
101 | |||
102 | 5 | public function setRequest($request) |
|
106 | |||
107 | 5 | public function getMethod() |
|
111 | |||
112 | 3 | public function setMethod($method) |
|
116 | |||
117 | 5 | public function getParams() |
|
121 | |||
122 | 5 | public function setParams($params) |
|
126 | |||
127 | 4 | public function redirect(string $url, int $status = 302) |
|
142 | |||
143 | 3 | public function setStatusCode(int $status = 302) |
|
158 | } |
||
159 |
This check marks private properties in classes that are never used. Those properties can be removed.