Completed
Push — master ( f72cfb...4ef12f )
by Tim
21s queued 18s
created

AbstractComplexRestrictionType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

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