SAML2\XML\saml\BaseIDType::__toString PHP Method

__toString() public method

Get a string representation of this BaseIDType object.
public __toString ( ) : string
return string The resulting XML, as a string.
    public function __toString()
    {
        $doc = DOMDocumentFactory::create();
        $root = $doc->createElementNS(Constants::NS_SAML, 'root');
        $ele = $this->toXML($root);
        return $doc->saveXML($ele);
    }