AbstractReferencedAttributeGroup   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 25
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\XMLSchema\XML;
6
7
use SimpleSAML\XMLSchema\Type\{IDValue, QNameValue};
8
use SimpleSAML\XMLSchema\XML\Enumeration\NamespaceEnum;
9
10
/**
11
 * Abstract class representing the attributeGroupRef-type.
12
 *
13
 * @package simplesamlphp/xml-common
14
 */
15
abstract class AbstractReferencedAttributeGroup extends AbstractAttributeGroup
16
{
17
    /** The namespace-attribute for the xs:anyAttribute element */
18
    public const XS_ANY_ATTR_NAMESPACE = NamespaceEnum::Other;
19
20
21
    /**
22
     * NamedAttributeGroup constructor
23
     *
24
     * @param \SimpleSAML\XMLSchema\Type\QNameValue $reference
25
     * @param \SimpleSAML\XMLSchema\XML\Annotation|null $annotation
26
     * @param \SimpleSAML\XMLSchema\Type\IDValue|null $id
27
     * @param array<\SimpleSAML\XML\Attribute> $namespacedAttributes
28
     */
29
    public function __construct(
30
        QNameValue $reference,
31
        ?Annotation $annotation = null,
32
        ?IDValue $id = null,
33
        array $namespacedAttributes = [],
34
    ) {
35
        parent::__construct(
36
            reference: $reference,
37
            annotation: $annotation,
38
            id: $id,
39
            namespacedAttributes: $namespacedAttributes,
40
        );
41
    }
42
}
43