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

AbstractLocalComplexType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

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