Total Complexity | 4 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | abstract class AbstractECValidationDataType extends AbstractDsig11Element |
||
17 | { |
||
18 | /** |
||
19 | * Initialize a ECValidationDataType element. |
||
20 | * |
||
21 | * @param \SimpleSAML\XMLSecurity\XML\dsig11\Seed $seed |
||
22 | * @param string $hashAlgorithm |
||
23 | */ |
||
24 | public function __construct( |
||
25 | protected Seed $seed, |
||
26 | protected string $hashAlgorithm, |
||
27 | ) { |
||
28 | Assert::validURI($hashAlgorithm, SchemaViolationException::class); |
||
29 | } |
||
30 | |||
31 | |||
32 | /** |
||
33 | * Collect the value of the seed-property |
||
34 | * |
||
35 | * @return \SimpleSAML\XMLSecurity\XML\dsig11\Seed |
||
36 | */ |
||
37 | public function getSeed(): Seed |
||
38 | { |
||
39 | return $this->seed; |
||
40 | } |
||
41 | |||
42 | |||
43 | /** |
||
44 | * Collect the value of the hashAlgorithm-property |
||
45 | * |
||
46 | * @return string |
||
47 | */ |
||
48 | public function getHashAlgorithm(): string |
||
51 | } |
||
52 | |||
53 | |||
54 | /** |
||
55 | * Convert this ECValidationDataType element to XML. |
||
56 | * |
||
57 | * @param \DOMElement|null $parent The element we should append this ECValidationDataType element to. |
||
58 | * @return \DOMElement |
||
59 | */ |
||
60 | public function toXML(?DOMElement $parent = null): DOMElement |
||
70 |