Passed
Push — master ( faa376...c7ca4c )
by Tim
17:29 queued 14:52
created

AbstractReferencedGroup   A

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
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\XMLSchema\XML;
6
7
use SimpleSAML\XMLSchema\Type\IDValue;
8
use SimpleSAML\XMLSchema\Type\QNameValue;
9
use SimpleSAML\XMLSchema\XML\Constants\NS;
10
11
/**
12
 * Abstract class representing the groupRef-type.
13
 *
14
 * @package simplesamlphp/xml-common
15
 */
16
abstract class AbstractReferencedGroup extends AbstractRealGroup
17
{
18
    /** The namespace-attribute for the xs:anyAttribute element */
19
    public const string XS_ANY_ATTR_NAMESPACE = NS::OTHER;
0 ignored issues
show
Bug introduced by
A parse error occurred: Syntax error, unexpected T_STRING, expecting '=' on line 19 at column 24
Loading history...
20
21
22
    /**
23
     * Group constructor
24
     *
25
     * @param \SimpleSAML\XMLSchema\Type\QNameValue $reference
26
     * @param \SimpleSAML\XMLSchema\XML\Annotation|null $annotation
27
     * @param \SimpleSAML\XMLSchema\Type\IDValue|null $id
28
     * @param array<\SimpleSAML\XML\Attribute> $namespacedAttributes
29
     */
30
    public function __construct(
31
        QNameValue $reference,
32
        ?Annotation $annotation = null,
33
        ?IDValue $id = null,
34
        array $namespacedAttributes = [],
35
    ) {
36
        parent::__construct(
37
            reference: $reference,
38
            annotation: $annotation,
39
            id: $id,
40
            namespacedAttributes: $namespacedAttributes,
41
        );
42
    }
43
}
44