Passed
Push — master ( 8413b2...00f101 )
by Tim
02:19
created

AbstractLocalComplexType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 19 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\XMLSchema\XML;
6
7
use SimpleSAML\XMLSchema\Type\{BooleanValue, IDValue};
8
use SimpleSAML\XMLSchema\XML\Interface\TypeDefParticleInterface;
9
10
/**
11
 * Abstract class representing the localComplexType-type.
12
 *
13
 * @package simplesamlphp/xml-common
14
 */
15
abstract class AbstractLocalComplexType extends AbstractComplexType
16
{
17
    /**
18
     * LocalComplexType constructor
19
     *
20
     * @param \SimpleSAML\XMLSchema\Type\BooleanValue|null $mixed
21
     * @param \SimpleSAML\XMLSchema\XML\SimpleContent|\SimpleSAML\XMLSchema\XML\ComplexContent|null $content
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
        ?BooleanValue $mixed = null,
34
        SimpleContent|ComplexContent|null $content = null,
35
        ?TypeDefParticleInterface $particle = null,
36
        array $attributes = [],
37
        ?AnyAttribute $anyAttribute = null,
38
        ?Annotation $annotation = null,
39
        ?IDValue $id = null,
40
        array $namespacedAttributes = [],
41
    ) {
42
        parent::__construct(
43
            mixed: $mixed,
44
            content: $content,
45
            particle: $particle,
46
            attributes: $attributes,
47
            anyAttribute: $anyAttribute,
48
            annotation: $annotation,
49
            id: $id,
50
            namespacedAttributes: $namespacedAttributes,
51
        );
52
    }
53
}
54