| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | public function getCompiler( |
||
| 12 | string $certificateFilePath, |
||
| 13 | string $certificatePassword, |
||
| 14 | string $appleWWDRCAFile = null |
||
| 15 | ): Compiler { |
||
| 16 | $signer = new Signer($certificateFilePath, $certificatePassword); |
||
| 17 | if ($appleWWDRCAFile !== null) { |
||
| 18 | $signer->setAppleWWDRCA($appleWWDRCAFile); |
||
| 19 | } |
||
| 20 | |||
| 21 | return new Compiler(new ManifestGenerator(), $signer, new Compressor(new ZipArchive())); |
||
| 22 | } |
||
| 24 |