Passed
Push — master ( c726f3...c686fd )
by Tim
10:07
created

Value::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\SOAP12\XML\env;
6
7
use SimpleSAML\Assert\Assert;
8
use SimpleSAML\XML\QNameElementTrait;
9
10
/**
11
 * Class representing a env:Value element.
12
 *
13
 * @package simplesaml/xml-soap
14
 */
15
final class Value extends AbstractSoapElement
16
{
17
    use QNameElementTrait;
18
19
20
    /**
21
     * Initialize a env:Value
22
     *
23
     * @param string $qname
24
     * @param string|null $namespaceUri
25
     */
26
    public function __construct(string $qname, ?string $namespaceUri = null)
27
    {
28
        $this->setContent($qname);
29
        $this->setContentNamespaceUri($namespaceUri);
30
    }
31
}
32