变更
This commit is contained in:
+20
-1
@@ -21,7 +21,10 @@ class Config
|
||||
public string $name = '';
|
||||
|
||||
|
||||
public int $mode = SWOOLE_SOCK_TCP;
|
||||
|
||||
public int $mode = SWOOLE_PROCESS;
|
||||
|
||||
public int $socket = SWOOLE_SOCK_TCP;
|
||||
|
||||
|
||||
public array $settings = [];
|
||||
@@ -141,4 +144,20 @@ class Config
|
||||
$this->events = $events;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getSocket(): int
|
||||
{
|
||||
return $this->socket;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $socket
|
||||
*/
|
||||
public function setSocket(int $socket): void
|
||||
{
|
||||
$this->socket = $socket;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user