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

__construct() public method

Initialize a saml:BaseID, either from scratch or from an existing \DOMElement.
public __construct ( DOMElement $xml = null )
$xml DOMElement The XML element we should load, if any.
    public function __construct(\DOMElement $xml = null)
    {
        if ($xml === null) {
            return;
        }
        $this->element = $xml;
        if ($xml->hasAttribute('NameQualifier')) {
            $this->NameQualifier = $xml->getAttribute('NameQualifier');
        }
        if ($xml->hasAttribute('SPNameQualifier')) {
            $this->SPNameQualifier = $xml->getAttribute('SPNameQualifier');
        }
    }