Total Complexity | 4 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class BuiltInAttestationFormat implements AttestationFormatInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | private $formatId; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $statementClass; |
||
20 | |||
21 | /** |
||
22 | * @var AttestationVerifierInterface |
||
23 | */ |
||
24 | private $verifier; |
||
25 | |||
26 | /** |
||
27 | * @phpstan-param class-string<AttestationStatementInterface> $statementClass |
||
28 | */ |
||
29 | 30 | public function __construct(string $formatId, string $statementClass, AttestationVerifierInterface $verifier) |
|
30 | { |
||
31 | 30 | $this->formatId = $formatId; |
|
32 | 30 | $this->statementClass = $statementClass; |
|
33 | 30 | $this->verifier = $verifier; |
|
34 | 30 | } |
|
35 | |||
36 | 30 | public function getFormatId(): string |
|
39 | } |
||
40 | |||
41 | 3 | public function createStatement(AttestationObject $attestationObject): AttestationStatementInterface |
|
45 | } |
||
46 | |||
47 | 10 | public function getVerifier(): AttestationVerifierInterface |
|
52 |