Total Complexity | 5 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class PublicKeyCredential extends Credential |
||
17 | { |
||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $rawId; |
||
22 | |||
23 | /** |
||
24 | * @var AuthenticatorAttestationResponse |
||
25 | */ |
||
26 | private $response; |
||
27 | |||
28 | /** |
||
29 | * PublicKeyCredential constructor. |
||
30 | */ |
||
31 | public function __construct(string $id, string $type, string $rawId, AuthenticatorAttestationResponse $response) |
||
32 | { |
||
33 | parent::__construct($id, $type); |
||
34 | $this->rawId = $rawId; |
||
35 | $this->response = $response; |
||
36 | } |
||
37 | |||
38 | public function getRawId(): string |
||
39 | { |
||
40 | return $this->rawId; |
||
41 | } |
||
42 | |||
43 | public function getResponse(): AuthenticatorAttestationResponse |
||
44 | { |
||
45 | return $this->response; |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * @param string[] $transport |
||
50 | */ |
||
51 | public function getPublicKeyCredentialDescriptor(array $transport = []): PublicKeyCredentialDescriptor |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function jsonSerialize(): array |
||
66 | ]; |
||
67 | } |
||
68 | } |
||
69 |