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