Passed
Push — master ( 9c04a6...d792f4 )
by Tim
02:03
created

Value::getNode()   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
namespace SimpleSAML\SOAP\XML\env;
4
5
use DOMAttr;
6
use DOMElement;
7
use DOMNameSpaceNode;
8
use SimpleSAML\Assert\Assert;
9
use SimpleSAML\SOAP\XML\QNameStringElementTrait;
10
use SimpleSAML\XML\Exception\InvalidDOMElementException;
11
12
/**
13
 * Class representing a env:Value element.
14
 *
15
 * @package simplesaml/xml-soap
16
 */
17
final class Value extends AbstractSoapElement
18
{
19
    use QNameStringElementTrait;
1 ignored issue
show
introduced by
The trait SimpleSAML\SOAP\XML\QNameStringElementTrait requires some properties which are not provided by SimpleSAML\SOAP\XML\env\Value: $localName, $namespaceURI
Loading history...
20
21
22
    /**
23
     * Initialize a env:Value
24
     *
25
     * @param string $qname
26
     * @param string|null $namespaceUri
27
     */
28
    public function __construct(string $qname, ?string $namespaceUri = null)
29
    {
30
        $this->setContent($qname);
31
        $this->setContentNamespaceUri($namespaceUri);
32
    }
33
}
34