| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function getContentOfCompleteChain() |
||
| 22 | { |
||
| 23 | while ($this->lastCertificate()->hasParentInTrustChain()) { |
||
| 24 | $this->certificates->push($this->lastCertificate()->fetchParentCertificate()); |
||
| 25 | } |
||
| 26 | |||
| 27 | return $this->certificates->map(function (Certificate $certificate) { |
||
| 28 | return $certificate->getContents(); |
||
| 29 | })->implode(''); |
||
| 30 | } |
||
| 31 | |||
| 37 |