Completed
Push — master ( da4b66...3ae217 )
by Tim
19s queued 15s
created

AssertionArtifact::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 4
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 SimpleSAML\XML\StringElementTrait;
8
9
/**
10
 * SAML AssertionArtifact element.
11
 *
12
 * @package simplesamlphp/saml11
13
 */
14
15
final class AssertionArtifact extends AbstractSamlpElement
16
{
17
    use StringElementTrait;
18
19
20
    /**
21
     * Initialize a saml:AssertionArtifac from scratch
22
     *
23
     * @param string $value
24
     */
25
    public function __construct(
26
        protected string $value,
27
    ) {
28
        $this->setContent($value);
29
    }
30
}
31