public function setComponent(NetworkComponentInterface $component = null) { $this->wsServer = $component === null ? new NullServer() : $component; }