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

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