Total Complexity | 3 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | final class UnknownCondition extends AbstractCondition |
||
16 | { |
||
17 | /** @var \SimpleSAML\XML\Chunk */ |
||
18 | protected Chunk $chunk; |
||
19 | |||
20 | |||
21 | /** |
||
22 | * @param \SimpleSAML\XML\Chunk $chunk The whole Condition element as a chunk object. |
||
23 | * @param string $type The xsi:type of this condition. |
||
24 | */ |
||
25 | public function __construct( |
||
26 | Chunk $chunk, |
||
27 | string $type |
||
28 | ) { |
||
29 | parent::__construct($type); |
||
30 | $this->chunk = $chunk; |
||
31 | } |
||
32 | |||
33 | |||
34 | /** |
||
35 | * Get the raw version of this condition as a Chunk. |
||
36 | * |
||
37 | * @return \SimpleSAML\XML\Chunk |
||
38 | */ |
||
39 | public function getRawCondition(): Chunk |
||
40 | { |
||
41 | return $this->chunk; |
||
42 | } |
||
43 | |||
44 | |||
45 | /** |
||
46 | * Convert this unknown condition to XML. |
||
47 | * |
||
48 | * @param \DOMElement|null $parent The element we are converting to XML. |
||
49 | * @return \DOMElement The XML element after adding the data corresponding to this unknown condition. |
||
50 | */ |
||
51 | public function toXML(DOMElement $parent = null): DOMElement |
||
54 | } |
||
55 | } |
||
56 |