| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | final class UnknownStatement extends AbstractStatement |
||
| 16 | { |
||
| 17 | /** @var \SimpleSAML\XML\Chunk */ |
||
| 18 | protected Chunk $chunk; |
||
| 19 | |||
| 20 | |||
| 21 | /** |
||
| 22 | * @param \SimpleSAML\XML\Chunk $chunk The whole Statement element as a chunk object. |
||
| 23 | * @param string $type The xsi:type of this statement |
||
| 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 statement as a Chunk. |
||
| 36 | * |
||
| 37 | * @return \SimpleSAML\XML\Chunk |
||
| 38 | */ |
||
| 39 | public function getRawStatement(): Chunk |
||
| 40 | { |
||
| 41 | return $this->chunk; |
||
| 42 | } |
||
| 43 | |||
| 44 | |||
| 45 | /** |
||
| 46 | * Convert this unknown statement 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 statement. |
||
| 50 | */ |
||
| 51 | public function toXML(DOMElement $parent = null): DOMElement |
||
| 54 | } |
||
| 55 | } |
||
| 56 | |||
| 57 |