This commit is contained in:
2021-10-29 14:10:53 +08:00
parent df2d887d97
commit f0b9d7a37b
10 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ class OnAfterReload
/**
* @param Server $server
*/
public function __construct(Server $server)
public function __construct(public Server $server)
{
}
+1 -1
View File
@@ -11,7 +11,7 @@ class OnBeforeReload
/**
* @param Server $server
*/
public function __construct(Server $server)
public function __construct(public Server $server)
{
}
+1 -1
View File
@@ -11,7 +11,7 @@ class OnBeforeShutdown
/**
* @param Server|null $server
*/
public function __construct(?Server $server = null)
public function __construct(public ?Server $server = null)
{
}
+1 -1
View File
@@ -10,7 +10,7 @@ class OnManagerStart
/**
* @param Server $server
*/
public function __construct(Server $server)
public function __construct(public Server $server)
{
}
}
+1 -1
View File
@@ -11,7 +11,7 @@ class OnManagerStop
/**
* @param Server $server
*/
public function __construct(Server $server)
public function __construct(public Server $server)
{
}
+1 -1
View File
@@ -11,7 +11,7 @@ class OnShutdown
/**
* @param Server|null $server
*/
public function __construct(?Server $server = null)
public function __construct(public ?Server $server = null)
{
}
+1 -1
View File
@@ -11,7 +11,7 @@ class OnStart
/**
* @param Server $server
*/
public function __construct(Server $server)
public function __construct(public Server $server)
{
}
+1 -1
View File
@@ -18,7 +18,7 @@ class OnWorkerError
* @param int $exit_code
* @param int $signal
*/
public function __construct(Server $server, int $worker_id, int $worker_pid, int $exit_code, int $signal)
public function __construct(public Server $server, public int $worker_id, public int $worker_pid, public int $exit_code, public int $signal)
{
}
+1 -1
View File
@@ -15,7 +15,7 @@ class OnWorkerExit
* @param Server $server
* @param int $workerId
*/
public function __construct(Server $server, int $workerId)
public function __construct(public Server $server, public int $workerId)
{
}
+1 -1
View File
@@ -15,7 +15,7 @@ class OnWorkerStop
* @param Server $server
* @param int $workerId
*/
public function __construct(Server $server, int $workerId)
public function __construct(public Server $server, public int $workerId)
{
}