The trait SimpleSAML\XML\LocalizedStringElementTrait requires some properties which are not provided by SimpleSAML\SOAP\XML\env\Text: $localName, $namespaceURI
Loading history...
21
22
23
/**
24
* Initialize a env:Text
25
*
26
* @param string $language
27
* @param string $content
28
*/
29
public function __construct(string $language, string $content)
30
{
31
$this->setContent($content);
32
$this->setLanguage($language);
33
}
34
35
36
/**
37
* Validate the content of the element.
38
*
39
* @param string $content The value to go in the XML textContent
40
* @throws \SimpleSAML\Assert\AssertionFailedException on failure
41
* @return void
42
*/
43
protected function validateContent(string $content): void