AbstractComplexRestrictionType   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 36
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 20 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\Interface\TypeDefParticleInterface;
10
11
/**
12
 * Abstract class representing the complexRestrictionType-type.
13
 *
14
 * @package simplesamlphp/xml-common
15
 */
16
abstract class AbstractComplexRestrictionType extends AbstractRestrictionType
17
{
18
    /**
19
     * AbstractRestrictionType constructor
20
     *
21
     * @param \SimpleSAML\XMLSchema\Type\QNameValue $base
22
     * @param \SimpleSAML\XMLSchema\XML\Interface\TypeDefParticleInterface|null $particle
23
     * @param (
24
     *   \SimpleSAML\XMLSchema\XML\LocalAttribute|
25
     *   \SimpleSAML\XMLSchema\XML\ReferencedAttributeGroup
26
     * )[] $attributes
27
     * @param \SimpleSAML\XMLSchema\XML\AnyAttribute|null $anyAttribute
28
     * @param \SimpleSAML\XMLSchema\XML\Annotation|null $annotation
29
     * @param \SimpleSAML\XMLSchema\Type\IDValue|null $id
30
     * @param array<\SimpleSAML\XML\Attribute> $namespacedAttributes
31
     */
32
    public function __construct(
33
        QNameValue $base,
34
        // xs:typeDefParticle
35
        ?TypeDefParticleInterface $particle = null,
36
        // xs:attrDecls
37
        array $attributes = [],
38
        ?AnyAttribute $anyAttribute = null,
39
        // parent defined
40
        ?Annotation $annotation = null,
41
        ?IDValue $id = null,
42
        array $namespacedAttributes = [],
43
    ) {
44
        parent::__construct(
45
            base: $base,
46
            particle: $particle,
47
            attributes: $attributes,
48
            anyAttribute: $anyAttribute,
49
            annotation: $annotation,
50
            id: $id,
51
            namespacedAttributes: $namespacedAttributes,
52
        );
53
    }
54
}
55