AbstractSimpleExtensionType   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 32
rs 10
c 0
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;
6
7
use SimpleSAML\XMLSchema\Type\IDValue;
0 ignored issues
show
Bug introduced by
The type SimpleSAML\XMLSchema\Type\IDValue was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
use SimpleSAML\XMLSchema\Type\QNameValue;
0 ignored issues
show
Bug introduced by
The type SimpleSAML\XMLSchema\Type\QNameValue was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
9
10
/**
11
 * Abstract class representing the simpleExtensionType-type.
12
 *
13
 * @package simplesamlphp/xml-common
14
 */
15
abstract class AbstractSimpleExtensionType extends AbstractExtensionType
16
{
17
    /**
18
     * AbstractExtensionType constructor
19
     *
20
     * @param \SimpleSAML\XMLSchema\Type\QNameValue $base
21
     * @param (
22
     *     \SimpleSAML\XMLSchema\XML\LocalAttribute|
23
     *     \SimpleSAML\XMLSchema\XML\ReferencedAttributeGroup
24
     * )[] $attributes
25
     * @param \SimpleSAML\XMLSchema\XML\AnyAttribute|null $anyAttribute
26
     * @param \SimpleSAML\XMLSchema\XML\Annotation|null $annotation
27
     * @param \SimpleSAML\XMLSchema\Type\IDValue|null $id
28
     * @param array<\SimpleSAML\XML\Attribute> $namespacedAttributes
29
     */
30
    public function __construct(
31
        QNameValue $base,
32
        // xs:attrDecls
33
        array $attributes = [],
34
        ?AnyAttribute $anyAttribute = null,
0 ignored issues
show
Bug introduced by
The type SimpleSAML\XMLSchema\XML\AnyAttribute was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
35
        // parent defined
36
        ?Annotation $annotation = null,
0 ignored issues
show
Bug introduced by
The type SimpleSAML\XMLSchema\XML\Annotation was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
37
        ?IDValue $id = null,
38
        array $namespacedAttributes = [],
39
    ) {
40
        parent::__construct(
41
            base: $base,
42
            attributes: $attributes,
43
            anyAttribute: $anyAttribute,
44
            annotation: $annotation,
45
            id: $id,
46
            namespacedAttributes: $namespacedAttributes,
47
        );
48
    }
49
}
50