Skip to content

Commit 15082e1

Browse files
committed
Add missing getter
1 parent 54a0a2f commit 15082e1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/TypedTextContentTrait.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,17 @@ public static function fromXML(DOMElement $xml): static
4646
}
4747

4848

49+
/**
50+
* Get the typed content of the element
51+
*
52+
* @return \SimpleSAML\XML\Type\ValueTypeInterface
53+
*/
54+
public function getContent(): TypeValueInterface
55+
{
56+
return $this->content;
57+
}
58+
59+
4960
/**
5061
* Create XML from this class
5162
*

0 commit comments

Comments
 (0)