The trait SimpleSAML\XML\XMLStringElementTrait requires some properties which are not provided by SimpleSAML\SAML2\XML\md\AffiliateMember: $localName, $namespaceURI
Loading history...
19
20
21
/**
22
* @param string $content
23
*/
24
public function __construct(string $content)
25
{
26
$this->setContent($content);
27
}
28
29
30
/**
31
* Validate the content of the element.
32
*
33
* @param string $content The value to go in the XML textContent
34
* @throws \Exception on failure
35
* @return void
36
*/
37
protected function validateContent(string $content): void
38
{
39
Assert::notEmpty($content, 'AffiliateMember cannot be empty');
40
Assert::maxLength($content, 1024, 'The entityID attribute cannot be longer than 1024 characters.');