Passed
Push — master ( 25fd26...1cb796 )
by Jaime Pérez
02:17
created

IDNameQualifiersTrait::getNameQualifier()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SAML2\XML;
6
7
/**
8
 * Trait grouping common functionality for elements implementing BaseIDAbstractType and NameIDType.
9
 *
10
 * @author Tim van Dijen, <[email protected]>
11
 * @package simplesamlphp/saml2
12
 */
13
trait IDNameQualifiersTrait
14
{
15
    /**
16
     * The security or administrative domain that qualifies the identifier.
17
     * This attribute provides a means to federate identifiers from disparate user stores without collision.
18
     *
19
     * @see saml-core-2.0-os
20
     *
21
     * @var string|null
22
     */
23
    protected $NameQualifier = null;
24
25
    /**
26
     * Further qualifies an identifier with the name of a service provider or affiliation of providers.
27
     * This attribute provides an additional means to federate identifiers on the basis of the relying party or parties.
28
     *
29
     * @see saml-core-2.0-os
30
     *
31
     * @var string|null
32
     */
33
    protected $SPNameQualifier = null;
34
35
36
    /**
37
     * Collect the value of the NameQualifier-property
38
     *
39
     * @return string|null
40
     */
41
    public function getNameQualifier(): ?string
42
    {
43
        return $this->NameQualifier;
44
    }
45
46
47
    /**
48
     * Set the value of the NameQualifier-property
49
     *
50
     * @param string|null $nameQualifier
51
     * @return void
52
     */
53
    private function setNameQualifier(?string $nameQualifier): void
54
    {
55
        $this->NameQualifier = $nameQualifier;
56
    }
57
58
    /**
59
     * Collect the value of the SPNameQualifier-property
60
     *
61
     * @return string|null
62
     */
63
    public function getSPNameQualifier(): ?string
64
    {
65
        return $this->SPNameQualifier;
66
    }
67
68
69
    /**
70
     * Set the value of the SPNameQualifier-property
71
     *
72
     * @param string|null $spNameQualifier
73
     * @return void
74
     */
75
    private function setSPNameQualifier(?string $spNameQualifier): void
76
    {
77
        $this->SPNameQualifier = $spNameQualifier;
78
    }
79
}
80