protected function appendVersion(VersionInterface $version) { $binding = $version->getBindingNode(); $binding = $this->document->importNode($binding, true); $this->domDefinitions->appendChild($binding); $servicePort = $version->getServicePortNode(); $servicePort = $this->document->importNode($servicePort, true); $this->domService->appendChild($servicePort); }
protected function appendService(VersionInterface $version) { if (!$this->domService) { $this->addService(); } $servicePort = $version->getServicePortNode(); $servicePort = $this->document->importNode($servicePort, true); $this->domService->appendChild($servicePort); }