protected function register(string $func) { xmlrpc_server_register_method($this->server, $func, [$this, 'call']); }