PolicyURIsTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
dl 0
loc 29
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setPolicyURIs() 0 3 1
A getPolicyURIs() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\WSSecurity\XML\wsp;
6
7
use SimpleSAML\XMLSchema\Type\Helper\AnyURIListValue;
8
9
/**
10
 * Trait grouping common functionality for elements that can hold a PolicyURIs attribute.
11
 *
12
 * @package simplesamlphp/ws-security
13
 * @phpstan-ignore trait.unused
14
 */
15
trait PolicyURIsTrait
16
{
17
    /**
18
     * The PolicyURIs.
19
     *
20
     * @var \SimpleSAML\XMLSchema\Type\Helper\AnyURIListValue
21
     */
22
    protected AnyURIListValue $PolicyURIs;
23
24
25
    /**
26
     * Collect the value of the PolicyURIs-property
27
     *
28
     * @return \SimpleSAML\XMLSchema\Type\Helper\AnyURIListValue
29
     */
30
    public function getPolicyURIs(): AnyURIListValue
31
    {
32
        return $this->PolicyURIs;
33
    }
34
35
36
    /**
37
     * Set the value of the PolicyURIs-property
38
     *
39
     * @param \SimpleSAML\XMLSchema\Type\Helper\AnyURIListValue $PolicyURIs
40
     */
41
    protected function setPolicyURIs(AnyURIListValue $PolicyURIs): void
42
    {
43
        $this->PolicyURIs = $PolicyURIs;
44
    }
45
}
46