| Total Complexity | 4 |
| Total Lines | 53 |
| 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 AuthenticatorResponse |
||
| 25 | */ |
||
| 26 | private $response; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * PublicKeyCredential constructor. |
||
| 30 | * |
||
| 31 | * @param string $id |
||
| 32 | * @param string $type |
||
| 33 | * @param string $rawId |
||
| 34 | * @param AuthenticatorResponse $response |
||
| 35 | */ |
||
| 36 | public function __construct(string $id, string $type, string $rawId, AuthenticatorResponse $response) |
||
| 37 | { |
||
| 38 | parent::__construct($id, $type); |
||
| 39 | $this->rawId = $rawId; |
||
| 40 | $this->response = $response; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | public function getRawId(): string |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return AuthenticatorResponse |
||
| 53 | */ |
||
| 54 | public function getResponse(): AuthenticatorResponse |
||
| 55 | { |
||
| 56 | return $this->response; |
||
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * {@inheritdoc} |
||
| 61 | */ |
||
| 62 | public function jsonSerialize(): array |
||
| 69 | ]; |
||
| 70 | } |
||
| 71 | } |
||
| 72 |