改名
This commit is contained in:
@@ -11,7 +11,7 @@ class OnAfterReload
|
||||
/**
|
||||
* @param Server $server
|
||||
*/
|
||||
public function __construct(Server $server)
|
||||
public function __construct(public Server $server)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ class OnBeforeReload
|
||||
/**
|
||||
* @param Server $server
|
||||
*/
|
||||
public function __construct(Server $server)
|
||||
public function __construct(public Server $server)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ class OnBeforeShutdown
|
||||
/**
|
||||
* @param Server|null $server
|
||||
*/
|
||||
public function __construct(?Server $server = null)
|
||||
public function __construct(public ?Server $server = null)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ class OnManagerStart
|
||||
/**
|
||||
* @param Server $server
|
||||
*/
|
||||
public function __construct(Server $server)
|
||||
public function __construct(public Server $server)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ class OnManagerStop
|
||||
/**
|
||||
* @param Server $server
|
||||
*/
|
||||
public function __construct(Server $server)
|
||||
public function __construct(public Server $server)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ class OnShutdown
|
||||
/**
|
||||
* @param Server|null $server
|
||||
*/
|
||||
public function __construct(?Server $server = null)
|
||||
public function __construct(public ?Server $server = null)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ class OnStart
|
||||
/**
|
||||
* @param Server $server
|
||||
*/
|
||||
public function __construct(Server $server)
|
||||
public function __construct(public Server $server)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user