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