@@ -15,9 +15,9 @@ class ServerInfo
15
15
protected Closure |null $ requestCallback = null ;
16
16
17
17
18
- #[Pure] public static function create (): static
18
+ #[Pure] public static function create (): ServerInfo
19
19
{
20
- return new static ();
20
+ return new ServerInfo ();
21
21
}
22
22
23
23
/**
@@ -32,7 +32,7 @@ public function getHost(): string
32
32
* @param string $host
33
33
* @return ServerInfo
34
34
*/
35
- public function setHost (string $ host ): static
35
+ public function setHost (string $ host ): ServerInfo
36
36
{
37
37
$ this ->host = $ host ;
38
38
return $ this ;
@@ -50,7 +50,7 @@ public function getPort(): int
50
50
* @param int $port
51
51
* @return ServerInfo
52
52
*/
53
- public function setPort (int $ port ): static
53
+ public function setPort (int $ port ): ServerInfo
54
54
{
55
55
$ this ->port = $ port ;
56
56
return $ this ;
@@ -68,7 +68,7 @@ public function getDocumentRoot(): ?string
68
68
* @param string|null $documentRoot
69
69
* @return ServerInfo
70
70
*/
71
- public function setDocumentRoot (?string $ documentRoot ): static
71
+ public function setDocumentRoot (?string $ documentRoot ): ServerInfo
72
72
{
73
73
$ this ->documentRoot = $ documentRoot ;
74
74
return $ this ;
@@ -86,7 +86,7 @@ public function getRouterScript(): ?string
86
86
* @param string|null $routerScript
87
87
* @return ServerInfo
88
88
*/
89
- public function setRouterScript (?string $ routerScript ): static
89
+ public function setRouterScript (?string $ routerScript ): ServerInfo
90
90
{
91
91
$ this ->routerScript = $ routerScript ;
92
92
return $ this ;
@@ -104,7 +104,7 @@ public function getRequestCallback(): ?Closure
104
104
* @param Closure|null $requestCallback
105
105
* @return ServerInfo
106
106
*/
107
- public function setRequestCallback (?Closure $ requestCallback ): static
107
+ public function setRequestCallback (?Closure $ requestCallback ): ServerInfo
108
108
{
109
109
$ this ->requestCallback = $ requestCallback ;
110
110
return $ this ;
0 commit comments