| Total Complexity | 3 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 18 | final class Audience extends AbstractSamlElement |
||
| 19 | { |
||
| 20 | use XMLURIElementTrait; |
||
| 21 | |||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string $content |
||
| 25 | */ |
||
| 26 | public function __construct(string $content) |
||
| 29 | } |
||
| 30 | |||
| 31 | |||
| 32 | /** |
||
| 33 | * Convert XML into an Audience |
||
| 34 | * |
||
| 35 | * @param \DOMElement $xml The XML element we should load |
||
| 36 | * @return self |
||
| 37 | * |
||
| 38 | * @throws \SimpleSAML\XML\Exception\InvalidDOMElementException |
||
| 39 | * If the qualified name of the supplied element is wrong |
||
| 40 | */ |
||
| 41 | public static function fromXML(DOMElement $xml): object |
||
| 47 | } |
||
| 48 | |||
| 49 | |||
| 50 | /** |
||
| 51 | * Convert this Audience to XML. |
||
| 52 | * |
||
| 53 | * @param \DOMElement $parent The element we are converting to XML. |
||
| 54 | * @return \DOMElement The XML element after adding the data corresponding to this Condition. |
||
| 55 | */ |
||
| 56 | public function toXML(DOMElement $parent = null): DOMElement |
||
| 65 |