The trait SimpleSAML\XML\XMLStringElementTrait requires some properties which are not provided by SimpleSAML\SAML2\XML\saml\AuthnContextClassRef: $localName, $namespaceURI
Loading history...
23
24
25
/**
26
* @param string $content
27
*/
28
public function __construct(string $content)
29
{
30
$this->setContent($content);
31
}
32
33
34
/**
35
* Validate the content of the element.
36
*
37
* @param string $content The value to go in the XML textContent
38
* @throws \Exception on failure
39
* @return void
40
*/
41
protected function validateContent(string $content): void
42
{
43
Assert::validURI($content, SchemaViolationException::class); // Covers the empty string