| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | 6 | public function __construct(CertificationPath $path, PathValidationResult $result) |
|
| 31 | { |
||
| 32 | 6 | if (!$result->certificate()->equals($path->endEntityCertificate())) { |
|
| 33 | 1 | throw new X509Exception("CertificationPath entity certificate must match PathValidationResult certificate"); |
|
| 34 | } |
||
| 35 | |||
| 36 | 6 | $this->path = $path; |
|
| 37 | 6 | $this->validationResult = $result; |
|
| 38 | 6 | } |
|
| 39 | |||
| 64 |