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

AbstractLocalSimpleType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\XMLSchema\XML\xs;
6
7
use SimpleSAML\XMLSchema\Type\Builtin\IDValue;
8
9
/**
10
 * Abstract class representing the abstract localSimpleType.
11
 *
12
 * @package simplesamlphp/xml-common
13
 */
14
abstract class AbstractLocalSimpleType extends AbstractSimpleType
15
{
16
    /**
17
     * Annotated constructor
18
     *
19
     * @param \SimpleSAML\XMLSchema\XML\xs\SimpleDerivationInterface $derivation
20
     * @param \SimpleSAML\XMLSchema\XML\xs\Annotation|null $annotation
21
     * @param \SimpleSAML\XMLSchema\Type\Builtin\IDValue|null $id
22
     * @param array<\SimpleSAML\XML\Attribute> $namespacedAttributes
23
     */
24
    public function __construct(
25
        SimpleDerivationInterface $derivation,
26
        ?Annotation $annotation = null,
27
        ?IDValue $id = null,
28
        array $namespacedAttributes = [],
29
    ) {
30
        parent::__construct(
31
            derivation: $derivation,
32
            annotation: $annotation,
33
            id: $id,
34
            namespacedAttributes: $namespacedAttributes,
35
        );
36
    }
37
}
38