Passed
Branch feature/php83 (cb5cde)
by Tim
14:20
created

RepublishTarget   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\SAML2\XML\emd;
6
7
use SimpleSAML\SAML2\Assert\Assert;
8
use SimpleSAML\SAML2\Type\SAMLAnyURIValue;
9
use SimpleSAML\XML\TypedTextContentTrait;
10
11
/**
12
 * Class implementing RepublishTarget.
13
 *
14
 * @package simplesamlphp/saml2
15
 */
16
final class RepublishTarget extends AbstractEmdElement
17
{
18
    use TypedTextContentTrait;
19
20
21
    public const string TEXTCONTENT_TYPE = SAMLAnyURIValue::class;
0 ignored issues
show
Bug introduced by
A parse error occurred: Syntax error, unexpected T_STRING, expecting '=' on line 21 at column 24
Loading history...
22
23
24
    /**
25
     * @param \SimpleSAML\SAML2\Type\SAMLAnyURIValue $content
26
     */
27
    public function __construct(
28
        SAMLAnyURIValue $content,
29
    ) {
30
        $this->setContent($content);
31
        Assert::same($content->getValue(), 'http://edugain.org/');
32
    }
33
}
34