| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 2.0625 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | 1 | public function voteOnTrust( |
|
| 29 | RegistrationResultInterface $registrationResult, |
||
| 30 | TrustPathInterface $trustPath, |
||
| 31 | ?MetadataInterface $metadata |
||
| 32 | ): TrustVote { |
||
| 33 | 1 | if ($registrationResult->getVerificationResult()->getAttestationType() === $this->trustedType) { |
|
| 34 | return TrustVote::trusted(); |
||
| 35 | } |
||
| 36 | 1 | return TrustVote::abstain(); |
|
| 37 | } |
||
| 39 |