Total Complexity | 2 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | final class KeyName extends AbstractDsElement |
||
19 | { |
||
20 | use XMLStringElementTrait; |
||
21 | |||
22 | |||
23 | /** |
||
24 | * Validate the content of the element. |
||
25 | * |
||
26 | * @param string $content The value to go in the XML textContent |
||
27 | * @throws \Exception on failure |
||
28 | * @return void |
||
29 | */ |
||
30 | private function validateContent(string $content): void |
||
32 | /** |
||
33 | * Perform no validation by default. |
||
34 | * Override this method on the implementing class to perform content validation. |
||
35 | */ |
||
36 | } |
||
37 | |||
38 | |||
39 | /** |
||
40 | * Convert XML into a KeyName |
||
41 | * |
||
42 | * @param \DOMElement $xml The XML element we should load |
||
43 | * @return self |
||
44 | * |
||
45 | * @throws \SimpleSAML\XML\Exception\InvalidDOMElementException |
||
46 | * If the qualified name of the supplied element is wrong |
||
47 | */ |
||
48 | public static function fromXML(DOMElement $xml): object |
||
56 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.