PolicyURIsTrait::setPolicyURIs()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 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