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