SAML2\XML\shibmd\Scope::__construct PHP Method

__construct() public method

Create a Scope.
public __construct ( DOMElement $xml = null )
$xml DOMElement The XML element we should load.
    public function __construct(\DOMElement $xml = null)
    {
        if ($xml === null) {
            return;
        }
        $this->scope = $xml->textContent;
        $this->regexp = Utils::parseBoolean($xml, 'regexp', false);
    }