Total Complexity | 3 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | abstract class AbstractAnonymousType extends AbstractWsawElement |
||
21 | { |
||
22 | /** |
||
23 | * AbstractAnonymousType constructor |
||
24 | * |
||
25 | * @param \SimpleSAML\WSSecurity\XML\wsaw\AnonymousEnum $value |
||
26 | */ |
||
27 | public function __construct( |
||
28 | protected AnonymousEnum $value, |
||
29 | ) { |
||
30 | } |
||
31 | |||
32 | |||
33 | /** |
||
34 | * @return \SimpleSAML\WSSecurity\XML\wsaw\AnonymousEnum |
||
35 | */ |
||
36 | public function getValue(): AnonymousEnum |
||
37 | { |
||
38 | return $this->value; |
||
39 | } |
||
40 | |||
41 | |||
42 | /** |
||
43 | * Convert this Anomymous to XML. |
||
44 | * |
||
45 | * @param \DOMElement|null $parent The element we should append this class to. |
||
46 | * @return \DOMElement The XML element after adding the data corresponding to this Anonymous. |
||
47 | */ |
||
48 | public function toXML(DOMElement $parent = null): DOMElement |
||
54 | } |
||
55 | } |
||
56 |