certificate = $xml->textContent; } /** * Convert this X509Certificate element to XML. * * @param DOMElement $parent The element we should append this X509Certificate element to. */ public function toXML(DOMElement $parent) { assert('is_string($this->certificate)'); return SAML2_Utils::addString($parent, XMLSecurityDSig::XMLDSIGNS, 'ds:X509Certificate', $this->certificate); } }