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