| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | private function toSignedXML(XMLSecurityKey $signingKey, array $certificates, DOMNode $insertBefore = null): DOMElement |
||
| 32 | { |
||
| 33 | $root = $this->toXML(); |
||
|
|
|||
| 34 | |||
| 35 | if ($insertBefore !== null) { |
||
| 36 | XMLSecurityUtils::insertSignature($signingKey, $certificates, $root, $insertBefore); |
||
| 37 | } else { |
||
| 38 | $signature = new Signature($signingKey->getAlgorithm(), $certificates, $signingKey); |
||
| 39 | $signature->toXML($root); |
||
| 40 | } |
||
| 41 | |||
| 42 | return $root; |
||
| 43 | } |
||
| 45 |