| Total Complexity | 5 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | abstract class AbstractExtensibleAttributesDocumented extends AbstractDocumented |
||
| 17 | { |
||
| 18 | use ExtendableAttributesTrait; |
||
|
1 ignored issue
–
show
|
|||
| 19 | |||
| 20 | /** The namespace-attribute for the xs:anyAttribute element */ |
||
| 21 | public const XS_ANY_ATTR_NAMESPACE = NS::OTHER; |
||
| 22 | |||
| 23 | |||
| 24 | /** |
||
| 25 | * Initialize a wsdl:tExtensibleAttributesDocumented |
||
| 26 | * |
||
| 27 | * @param \SimpleSAML\XML\Attribute[] $attributes |
||
| 28 | */ |
||
| 29 | public function __construct(array $attributes = []) |
||
| 33 | } |
||
| 34 | |||
| 35 | |||
| 36 | /** |
||
| 37 | * Test if an object, at the state it's in, would produce an empty XML-element |
||
| 38 | * |
||
| 39 | * @return bool |
||
| 40 | */ |
||
| 41 | public function isEmptyElement(): bool |
||
| 42 | { |
||
| 43 | return parent::isEmptyElement() && empty($this->getAttributesNS()); |
||
| 44 | } |
||
| 45 | |||
| 46 | |||
| 47 | /** |
||
| 48 | * Convert this tExtensibleAttributesDocumented to XML. |
||
| 49 | * |
||
| 50 | * @param \DOMElement|null $parent The element we are converting to XML. |
||
| 51 | * @return \DOMElement The XML element after adding the data corresponding to this tExtensibleAttributesDocumented. |
||
| 52 | */ |
||
| 53 | public function toXML(DOMElement $parent = null): DOMElement |
||
| 62 | } |
||
| 63 | } |
||
| 64 |