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

AbstractSimpleExtensionType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
dl 0
loc 32
rs 10
c 1
b 0
f 0
wmc 1

1 Method

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