Completed
Push — master ( da4b66...3ae217 )
by Tim
19s queued 15s
created

RespondWith   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
c 1
b 0
f 0
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\SAML11\XML\samlp;
6
7
use SimpleSAML\XML\QNameElementTrait;
8
9
/**
10
 * Class representing a samlp:RespondWith element.
11
 *
12
 * @package simplesaml/xml-saml11
13
 */
14
final class RespondWith extends AbstractSamlpElement
15
{
16
    use QNameElementTrait;
1 ignored issue
show
introduced by
The trait SimpleSAML\XML\QNameElementTrait requires some properties which are not provided by SimpleSAML\SAML11\XML\samlp\RespondWith: $localName, $namespaceURI
Loading history...
17
18
19
    /**
20
     * Initialize a samlp:RespondWith
21
     *
22
     * @param string $qname
23
     * @param string|null $namespaceUri
24
     */
25
    public function __construct(string $qname, ?string $namespaceUri = null)
26
    {
27
        $this->setContent($qname);
28
        $this->setContentNamespaceUri($namespaceUri);
29
    }
30
}
31