IDNameQualifiersTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getNameQualifier() 0 3 1
A getSPNameQualifier() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\SAML2\XML\saml;
6
7
use SimpleSAML\SAML2\Type\SAMLStringValue;
8
9
/**
10
 * SAML IDNameQualifier attribute group.
11
 *
12
 * @package simplesamlphp/saml2
13
 */
14
trait IDNameQualifiersTrait
15
{
16
    /**
17
     * Collect the value of the NameQualifier-property
18
     *
19
     * @return \SimpleSAML\SAML2\Type\SAMLStringValue|null
20
     */
21
    public function getNameQualifier(): ?SAMLStringValue
22
    {
23
        return $this->NameQualifier;
24
    }
25
26
27
    /**
28
     * Collect the value of the SPNameQualifier-property
29
     *
30
     * @return \SimpleSAML\SAML2\Type\SAMLStringValue|null
31
     */
32
    public function getSPNameQualifier(): ?SAMLStringValue
33
    {
34
        return $this->SPNameQualifier;
35
    }
36
}
37