Total Complexity | 5 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | abstract class AbstractExtensibleDocumented extends AbstractDocumented |
||
17 | { |
||
18 | use ExtendableElementTrait; |
||
19 | |||
20 | /** The namespace-attribute for the xs:any element */ |
||
21 | public const XS_ANY_ELT_NAMESPACE = NS::OTHER; |
||
22 | |||
23 | /** |
||
24 | * Initialize a wsdl:tDocumented |
||
25 | * |
||
26 | * @param \SimpleSAML\XML\Chunk[] $elements |
||
27 | */ |
||
28 | public function __construct(array $elements) |
||
29 | { |
||
30 | parent::__construct(/* TODO wsdl:documentation not implemented */); |
||
31 | $this->setElements($elements); |
||
32 | } |
||
33 | |||
34 | |||
35 | /** |
||
36 | * Test if an object, at the state it's in, would produce an empty XML-element |
||
37 | * |
||
38 | * @return bool |
||
39 | */ |
||
40 | public function isEmptyElement(): bool |
||
43 | } |
||
44 | |||
45 | |||
46 | /** |
||
47 | * Convert this tExtensibleDocumented to XML. |
||
48 | * |
||
49 | * @param \DOMElement|null $parent The element we are converting to XML. |
||
50 | * @return \DOMElement The XML element after adding the data corresponding to this tExtensibleDocumented. |
||
51 | */ |
||
52 | public function toXML(DOMElement $parent = null): DOMElement |
||
61 | } |
||
62 | } |
||
63 |