eee
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
|
||||
namespace Coroutine\Server;
|
||||
|
||||
class Config
|
||||
{
|
||||
|
||||
public int $port {
|
||||
get => $this->port;
|
||||
|
||||
set(int $value) {
|
||||
$this->port = $value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public string $host {
|
||||
get => $this->host;
|
||||
|
||||
|
||||
set(string $value) {
|
||||
$this->host = $value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public string $authKey {
|
||||
get => $this->authKey;
|
||||
|
||||
set(string $value) {
|
||||
$this->authKey = $value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public int $writeTimeout {
|
||||
get => $this->writeTimeout;
|
||||
|
||||
set(int $value) {
|
||||
$this->writeTimeout = $value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public int $maxCoroutine {
|
||||
get => $this->maxCoroutine;
|
||||
|
||||
set(int $value) {
|
||||
$this->maxCoroutine = $value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public int $readTimeout {
|
||||
get => $this->readTimeout;
|
||||
|
||||
set(int $value) {
|
||||
$this->readTimeout = $value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public int $maxPackageSize {
|
||||
get => $this->maxPackageSize;
|
||||
|
||||
set(int $value) {
|
||||
$this->maxPackageSize = $value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public int $maxFrameSize {
|
||||
get => $this->maxFrameSize;
|
||||
|
||||
set(int $value) {
|
||||
$this->maxFrameSize = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user