The trait SimpleSAML\XML\XMLStringElementTrait requires some properties which are not provided by SimpleSAML\SAML2\XML\md\TelephoneNumber: $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, 'TelephoneNumber cannot be empty');
40
}
41
42
43
/**
44
* Create a class from an array
45
*
46
* @param array $data
47
* @return self
48
*/
49
public static function fromArray(array $data): object