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

FaultString   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\SOAP11\XML\env;
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