@@ -33,45 +33,27 @@ class Request implements IRequest
3333{
3434 use Nette \SmartObject;
3535
36- private string $ method ;
37- private UrlScript $ url ;
38- private array $ post ;
39- private array $ files ;
40- private array $ cookies ;
4136 private array $ headers ;
42- private ?string $ remoteAddress ;
43- private ?string $ remoteHost ;
4437
4538 /** @var ?callable */
4639 private $ rawBodyCallback ;
47- private ?string $ user ;
48- private ?string $ password ;
4940
5041
5142 public function __construct (
52- UrlScript $ url ,
53- array $ post = [],
54- array $ files = [],
55- array $ cookies = [],
43+ private UrlScript $ url ,
44+ private array $ post = [],
45+ private array $ files = [],
46+ private array $ cookies = [],
5647 array $ headers = [],
57- string $ method = 'GET ' ,
58- ?string $ remoteAddress = null ,
59- ?string $ remoteHost = null ,
48+ private string $ method = 'GET ' ,
49+ private ?string $ remoteAddress = null ,
50+ private ?string $ remoteHost = null ,
6051 ?callable $ rawBodyCallback = null ,
61- ?string $ user = null ,
62- ?string $ password = null ,
52+ private ?string $ user = null ,
53+ private ?string $ password = null ,
6354 ) {
64- $ this ->url = $ url ;
65- $ this ->post = $ post ;
66- $ this ->files = $ files ;
67- $ this ->cookies = $ cookies ;
6855 $ this ->headers = array_change_key_case ($ headers , CASE_LOWER );
69- $ this ->method = $ method ;
70- $ this ->remoteAddress = $ remoteAddress ;
71- $ this ->remoteHost = $ remoteHost ;
7256 $ this ->rawBodyCallback = $ rawBodyCallback ;
73- $ this ->user = $ user ;
74- $ this ->password = $ password ;
7557 }
7658
7759
0 commit comments