Passed
Pull Request — master (#58)
by Tim
02:14
created

X509SerialNumber::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\XMLSecurity\XML\ds;
6
7
use DOMElement;
8
use SimpleSAML\Assert\Assert;
9
use SimpleSAML\XML\Exception\InvalidDOMElementException;
10
use SimpleSAML\XML\Exception\SchemaViolationException;
11
use SimpleSAML\XML\IntegerElementTrait;
12
13
/**
14
 * Class representing a ds:X509SerialNumber element.
15
 *
16
 * @package simplesaml/xml-security
17
 */
18
final class X509SerialNumber extends AbstractDsElement
19
{
20
    use IntegerElementTrait;
1 ignored issue
show
introduced by
The trait SimpleSAML\XML\IntegerElementTrait requires some properties which are not provided by SimpleSAML\XMLSecurity\XML\ds\X509SerialNumber: $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