for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace SimpleSAML\XMLSecurity\XML\ds;
use DOMElement;
use SimpleSAML\Assert\Assert;
use SimpleSAML\XML\Exception\InvalidDOMElementException;
use SimpleSAML\XML\XMLStringElementTrait;
/**
* Class representing a ds:X509IssuerName element.
*
* @package simplesaml/xml-security
*/
final class X509IssuerName extends AbstractDsElement
{
use XMLStringElementTrait;
* Convert XML into a X509IssuerName
* @param \DOMElement $xml The XML element we should load
* @return self
* @throws \SimpleSAML\XML\Exception\InvalidDOMElementException
* If the qualified name of the supplied element is wrong
public static function fromXML(DOMElement $xml): object
Assert::same($xml->localName, 'X509IssuerName', InvalidDOMElementException::class);
Assert::same($xml->namespaceURI, X509IssuerName::NS, InvalidDOMElementException::class);
return new self($xml->textContent);
}