Passed
Push — master ( 92085d...93354f )
by Tim
02:29
created

AuthnContextDeclRef::validateContent()   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 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\SAML2\XML\saml;
6
7
use SimpleSAML\SAML2\Assert\Assert as SAMLAssert;
8
use SimpleSAML\SAML2\XML\URIElementTrait;
9
use SimpleSAML\XML\SchemaValidatableElementInterface;
10
use SimpleSAML\XML\SchemaValidatableElementTrait;
11
12
/**
13
 * Class representing SAML2 AuthnContextDeclRef
14
 *
15
 * @package simplesamlphp/saml2
16
 */
17
final class AuthnContextDeclRef extends AbstractSamlElement implements SchemaValidatableElementInterface
18
{
19
    use SchemaValidatableElementTrait;
20
    use URIElementTrait;
0 ignored issues
show
introduced by
The trait SimpleSAML\SAML2\XML\URIElementTrait requires some properties which are not provided by SimpleSAML\SAML2\XML\saml\AuthnContextDeclRef: $localName, $namespaceURI
Loading history...
21
22
23
    /**
24
     * @param string $content
25
     */
26
    public function __construct(string $content)
27
    {
28
        $this->setContent($content);
29
    }
30
}
31