Total Complexity | 4 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | abstract class AbstractCurveType extends AbstractDsig11Element |
||
15 | { |
||
16 | /** |
||
17 | * Initialize a CurveType element. |
||
18 | * |
||
19 | * @param \SimpleSAML\XMLSecurity\XML\dsig11\A $a |
||
20 | * @param \SimpleSAML\XMLSecurity\XML\dsig11\B $b |
||
21 | */ |
||
22 | public function __construct( |
||
23 | protected A $a, |
||
24 | protected B $b, |
||
25 | ) { |
||
26 | } |
||
27 | |||
28 | |||
29 | /** |
||
30 | * Collect the value of the a-property |
||
31 | * |
||
32 | * @return \SimpleSAML\XMLSecurity\XML\dsig11\A |
||
33 | */ |
||
34 | public function getA(): A |
||
35 | { |
||
36 | return $this->a; |
||
37 | } |
||
38 | |||
39 | |||
40 | /** |
||
41 | * Collect the value of the b-property |
||
42 | * |
||
43 | * @return \SimpleSAML\XMLSecurity\XML\dsig11\B |
||
44 | */ |
||
45 | public function getB(): B |
||
48 | } |
||
49 | |||
50 | |||
51 | /** |
||
52 | * Convert this CurveType element to XML. |
||
53 | * |
||
54 | * @param \DOMElement|null $parent The element we should append this CurveType element to. |
||
55 | * @return \DOMElement |
||
56 | */ |
||
57 | public function toXML(?DOMElement $parent = null): DOMElement |
||
67 |