Total Complexity | 4 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
19 | class PublicKeyCredential extends Credential |
||
20 | { |
||
21 | private $rawId; |
||
22 | |||
23 | private $response; |
||
24 | |||
25 | public function __construct(string $id, string $type, string $rawId, AuthenticatorResponse $response) |
||
26 | { |
||
27 | parent::__construct($id, $type); |
||
28 | $this->rawId = $rawId; |
||
29 | $this->response = $response; |
||
30 | } |
||
31 | |||
32 | public function getRawId(): string |
||
33 | { |
||
34 | return $this->rawId; |
||
35 | } |
||
36 | |||
37 | public function getResponse(): AuthenticatorResponse |
||
38 | { |
||
39 | return $this->response; |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @param string[] $transport |
||
44 | */ |
||
45 | public function getPublicKeyCredentialDescriptor(array $transport = []): PublicKeyCredentialDescriptor |
||
48 | } |
||
49 | } |
||
50 |