Passed
Pull Request — master (#6)
by Tim
12:09
created

StatusMessage::fromXML()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 6
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\SAML11\XML\samlp;
6
7
use DOMElement;
8
use SimpleSAML\Assert\Assert;
9
use SimpleSAML\SAML11\Type\StringValue;
10
use SimpleSAML\XML\Exception\InvalidDOMElementException;
11
use SimpleSAML\XML\{SchemaValidatableElementInterface, SchemaValidatableElementTrait};
12
use SimpleSAML\XML\TypedTextContentTrait;
13
14
/**
15
 * Class representing a samlp:StatusMessage element.
16
 *
17
 * @package simplesaml/saml11
18
 */
19
final class StatusMessage extends AbstractSamlpElement implements SchemaValidatableElementInterface
20
{
21
    use SchemaValidatableElementTrait;
22
    use TypedTextContentTrait;
1 ignored issue
show
introduced by
The trait SimpleSAML\XML\TypedTextContentTrait requires some properties which are not provided by SimpleSAML\SAML11\XML\samlp\StatusMessage: $localName, $namespaceURI
Loading history...
23
24
    /** @var string */
25
    public const TEXTCONTENT_TYPE = StringValue::class;
26
}
27