ArtifactResolutionService   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 14 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\SAML2\XML\md;
6
7
use SimpleSAML\Assert\Assert;
8
use SimpleSAML\XML\SchemaValidatableElementInterface;
9
use SimpleSAML\XML\SchemaValidatableElementTrait;
10
11
/**
12
 * A class implementing the md:ArtifactResolutionService element.
13
 *
14
 * @package simplesamlphp/saml2
15
 */
16
final class ArtifactResolutionService extends AbstractIndexedEndpointType implements SchemaValidatableElementInterface
17
{
18
    use SchemaValidatableElementTrait;
19
20
    /**
21
     * ArtifactResolutionService constructor.
22
     *
23
     * This is an endpoint with one restriction: it cannot contain a ResponseLocation.
24
     *
25
     * @param int $index
26
     * @param string $binding
27
     * @param string $location
28
     * @param bool|null $isDefault
29
     * @param string|null $unused
30
     * @param list<\SimpleSAML\XML\Attribute> $attributes
0 ignored issues
show
Bug introduced by
The type SimpleSAML\SAML2\XML\md\list 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...
31
     * @param array $children
32
     *
33
     * @throws \SimpleSAML\Assert\AssertionFailedException
34
     */
35
    public function __construct(
36
        int $index,
37
        string $binding,
38
        string $location,
39
        ?bool $isDefault = null,
40
        ?string $unused = null,
41
        array $children = [],
42
        array $attributes = [],
43
    ) {
44
        Assert::null(
45
            $unused,
46
            'The \'ResponseLocation\' attribute must be omitted for md:ArtifactResolutionService.',
47
        );
48
        parent::__construct($index, $binding, $location, $isDefault, null, $children, $attributes);
49
    }
50
}
51