Total Complexity | 3 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | abstract class AbstractPrimeFieldParamsType extends AbstractDsig11Element |
||
15 | { |
||
16 | /** |
||
17 | * Initialize a PrimeFieldParamsType element. |
||
18 | * |
||
19 | * @param \SimpleSAML\XMLSecurity\XML\dsig11\P $p |
||
20 | */ |
||
21 | public function __construct( |
||
22 | protected P $p, |
||
23 | ) { |
||
24 | } |
||
25 | |||
26 | |||
27 | /** |
||
28 | * Collect the value of the p-property |
||
29 | * |
||
30 | * @return \SimpleSAML\XMLSecurity\XML\dsig11\P |
||
31 | */ |
||
32 | public function getP(): P |
||
33 | { |
||
34 | return $this->p; |
||
35 | } |
||
36 | |||
37 | |||
38 | /** |
||
39 | * Convert this PrimeFieldParamsType element to XML. |
||
40 | * |
||
41 | * @param \DOMElement|null $parent The element we should append this PrimeFieldParamsType element to. |
||
42 | * @return \DOMElement |
||
43 | */ |
||
44 | public function toXML(?DOMElement $parent = null): DOMElement |
||
50 | } |
||
51 | } |
||
52 |