*/ class class_server/**/ { /* * @var struct_server */ private $subject; /** * @var struct_server $subject * @author Christian Fraß */ private function __construct( struct_server/**/ $subject ) { $this->subject = $subject; } /** * @author Christian Fraß */ public static function make/**/( int $port, \Closure $handler, bool $install_killhandler = false, \Closure $on_starting = null, \Closure $on_stopping = null, \Closure $on_started = null, \Closure $on_stopped = null ) : class_server/**/ { $subject = make($port, $handler, $install_killhandler, $on_starting, $on_stopping, $on_started, $on_stopped); return (new class_server($subject)); } /** * @author Christian Fraß */ function start() : void {start($this->subject);} function stop() : void {stop($this->subject);} } ?>