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