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