Aerys\Server class Server implements Aerys\Monitor

Summary

Properties

Methods

Properties

Methods

__construct — public function __construct(Aerys\Options $options, Aerys\VhostContainer $vhosts, Aerys\Logger $logger, Aerys\Ticker $ticker)
No documentation.
Type Parameter Description Default Value
Aerys\Options $options No documentation. none
Aerys\VhostContainer $vhosts No documentation. none
Aerys\Logger $logger No documentation. none
Aerys\Ticker $ticker No documentation. none
state — public function state(): int

Retrieve the current server state

getOption — public function getOption(string $option)

Retrieve a server option value

Type Parameter Description Default Value
string $option The option to retrieve none
setOption — public function setOption(string $option, mixed $newValue): void

Assign a server option value

Type Parameter Description Default Value
string $option The option to retrieve none
mixed $newValue No documentation. none
attach — public function attach(Aerys\ServerObserver $observer): void

Attach an observer

Type Parameter Description Default Value
Aerys\ServerObserver $observer No documentation. none
detach — public function detach(Aerys\ServerObserver $observer): void

Detach an Observer

Type Parameter Description Default Value
Aerys\ServerObserver $observer No documentation. none
start — public function start(): Amp\Promise

Start the server

__get — public function __get(string $prop)
No documentation.
Type Parameter Description Default Value
string $prop No documentation. none
__set — public function __set(string $prop, $val)
No documentation.
Type Parameter Description Default Value
string $prop No documentation. none
mixed $val No documentation. none
stop — public function stop(): Amp\Promise

Stop the server

__debugInfo — public function __debugInfo()
No documentation.
monitor — public function monitor(): array
No documentation.