IncludeTokenTypeTrait   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
c 1
b 0
f 0
dl 0
loc 29
rs 10

2 Methods

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