Passed
Branch feature/php8.3 (4d3b0a)
by Tim
17:15
created

AbstractSimpleExplicitGroup   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\XML\Constants\NS;
9
10
/**
11
 * Abstract class representing the simpleExplicitGroup-type.
12
 *
13
 * @package simplesamlphp/xml-common
14
 */
15
abstract class AbstractSimpleExplicitGroup extends AbstractExplicitGroup
16
{
17
    /** The namespace-attribute for the xs:anyAttribute element */
18
    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 18 at column 24
Loading history...
19
20
21
    /**
22
     * Group constructor
23
     *
24
     * @param array<\SimpleSAML\XMLSchema\XML\Interface\NestedParticleInterface> $nestedParticles
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
        array $nestedParticles = [],
31
        ?Annotation $annotation = null,
32
        ?IDValue $id = null,
33
        array $namespacedAttributes = [],
34
    ) {
35
        parent::__construct(
36
            nestedParticles: $nestedParticles,
37
            annotation: $annotation,
38
            id: $id,
39
            namespacedAttributes: $namespacedAttributes,
40
        );
41
    }
42
}
43