ReferenceIdentifierTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setRefId() 0 3 1
A getRefId() 0 3 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