AbstractSimpleRestrictionType   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 22 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 simpleRestrictionType-type.
12
 *
13
 * @package simplesamlphp/xml-common
14
 */
15
abstract class AbstractSimpleRestrictionType extends AbstractRestrictionType
16
{
17
    /**
18
     * AbstractRestrictionType constructor
19
     *
20
     * @param \SimpleSAML\XMLSchema\Type\QNameValue $base
21
     * @param \SimpleSAML\XMLSchema\XML\LocalSimpleType|null $localSimpleType
22
     * @param array<\SimpleSAML\XMLSchema\XML\Interface\FacetInterface> $facets
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
        QNameValue $base,
34
        // xs:simpleRestrictionModel
35
        ?LocalSimpleType $localSimpleType = null,
0 ignored issues
show
Bug introduced by
The type SimpleSAML\XMLSchema\XML\LocalSimpleType 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...
36
        array $facets = [],
37
        // xs:attrDecls
38
        array $attributes = [],
39
        ?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...
40
        // parent defined
41
        ?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...
42
        ?IDValue $id = null,
43
        array $namespacedAttributes = [],
44
    ) {
45
        parent::__construct(
46
            base: $base,
47
            localSimpleType: $localSimpleType,
48
            facets: $facets,
49
            attributes: $attributes,
50
            anyAttribute: $anyAttribute,
51
            annotation: $annotation,
52
            id: $id,
53
            namespacedAttributes: $namespacedAttributes,
54
        );
55
    }
56
}
57