| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 23 | public static function sign($documentName) {
|
||
| 24 | $cert = Company::getCertPath(); |
||
| 25 | // Load the XML to be signed |
||
| 26 | $xmlPath = Repository::getXmlPath($documentName); |
||
| 27 | |||
| 28 | $signer = new SignedXml(); |
||
| 29 | $signer->setCertificateFromFile($cert); |
||
| 30 | |||
| 31 | $signedXml = $signer->signFromFile($xmlPath); |
||
| 32 | Repository::saveSignedXml($documentName, $signedXml); |
||
| 33 | } |
||
| 36 |