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