FaultString::__construct()   A
last analyzed

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 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\SOAP\XML\env_200106;
6
7
use SimpleSAML\XML\AbstractElement;
8
use SimpleSAML\XML\StringElementTrait;
9
10
/**
11
 * Class representing a faultstring element.
12
 *
13
 * @package simplesaml/xml-soap
14
 */
15
final class FaultString extends AbstractElement
16
{
17
    use StringElementTrait;
18
19
    /** @var string */
20
    public const LOCALNAME = 'faultstring';
21
22
    /** @var null */
23
    public const NS = null;
24
25
    /** @var null */
26
    public const NS_PREFIX = null;
27
28
29
    /**
30
     * Initialize an faultstring
31
     *
32
     * @param string $faultString
33
     */
34
    public function __construct(string $faultString)
35
    {
36
        $this->setContent($faultString);
37
    }
38
}
39