public function __construct(ServerParams $serverParams = null) { $this->serverParams = $serverParams ?: new ServerParams(); }