ReferenceIdentifierTrait::setRefId()   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
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\WSSecurity\XML;
6
7
use SimpleSAML\XMLSchema\Type\AnyURIValue;
8
9
/**
10
 * @package simplesamlphp/ws-security
11
 *
12
 * @phpstan-ignore trait.unused
13
 */
14
trait ReferenceIdentifierTrait
15
{
16
    /** @var \SimpleSAML\XMLSchema\Type\AnyURIValue */
17
    protected AnyURIValue $refId;
18
19
20
    /**
21
     * @return \SimpleSAML\XMLSchema\Type\AnyURIValue
22
     */
23
    public function getRefId(): AnyURIValue
24
    {
25
        return $this->refId;
26
    }
27
28
29
    /**
30
     * @param \SimpleSAML\XMLSchema\Type\AnyURIValue $refId
31
     */
32
    private function setRefId(AnyURIValue $refId): void
33
    {
34
        $this->refId = $refId;
35
    }
36
}
37