IncludeTokenTypeTrait::setIncludeToken()   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\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