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

AbstractLocalSimpleType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 21
rs 10
c 0
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;
6
7
use SimpleSAML\XMLSchema\Type\IDValue;
8
use SimpleSAML\XMLSchema\XML\Interface\SimpleDerivationInterface;
9
10
/**
11
 * Abstract class representing the abstract localSimpleType.
12
 *
13
 * @package simplesamlphp/xml-common
14
 */
15
abstract class AbstractLocalSimpleType extends AbstractSimpleType
16
{
17
    /**
18
     * Annotated constructor
19
     *
20
     * @param \SimpleSAML\XMLSchema\XML\Interface\SimpleDerivationInterface $derivation
21
     * @param \SimpleSAML\XMLSchema\XML\Annotation|null $annotation
22
     * @param \SimpleSAML\XMLSchema\Type\IDValue|null $id
23
     * @param array<\SimpleSAML\XML\Attribute> $namespacedAttributes
24
     */
25
    public function __construct(
26
        SimpleDerivationInterface $derivation,
27
        ?Annotation $annotation = null,
28
        ?IDValue $id = null,
29
        array $namespacedAttributes = [],
30
    ) {
31
        parent::__construct(
32
            derivation: $derivation,
33
            annotation: $annotation,
34
            id: $id,
35
            namespacedAttributes: $namespacedAttributes,
36
        );
37
    }
38
}
39