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