Total Complexity | 2 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
19 | final class Artifact extends AbstractSamlpElement implements SchemaValidatableElementInterface |
||
20 | { |
||
21 | use Base64ElementTrait; |
||
|
|||
22 | use SchemaValidatableElementTrait; |
||
23 | |||
24 | /** |
||
25 | * Initialize an artifact. |
||
26 | * |
||
27 | * @param string $content |
||
28 | */ |
||
29 | public function __construct( |
||
30 | string $content, |
||
31 | ) { |
||
32 | $this->setContent($content); |
||
33 | } |
||
34 | |||
35 | |||
36 | /** |
||
37 | * Convert XML into an Artifact |
||
38 | * |
||
39 | * @param \DOMElement $xml The XML element we should load |
||
40 | * @return static |
||
41 | * |
||
42 | * @throws \SimpleSAML\XML\Exception\InvalidDOMElementException |
||
43 | * If the qualified name of the supplied element is wrong |
||
44 | */ |
||
45 | public static function fromXML(DOMElement $xml): static |
||
51 | } |
||
52 | } |
||
53 |