Passed
Pull Request — master (#351)
by Tim
02:15
created

IDNameQualifiersTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 21
rs 10
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
/**
8
 * SAML IDNameQualifier attribute group.
9
 *
10
 * @package simplesamlphp/saml2
11
 */
12
trait IDNameQualifiersTrait
13
{
14
    /**
15
     * Collect the value of the NameQualifier-property
16
     *
17
     * @return string|null
18
     */
19
    public function getNameQualifier(): ?string
20
    {
21
        return $this->nameQualifier;
22
    }
23
24
25
    /**
26
     * Collect the value of the SPNameQualifier-property
27
     *
28
     * @return string|null
29
     */
30
    public function getSPNameQualifier(): ?string
31
    {
32
        return $this->spNameQualifier;
33
    }
34
}
35