| Total Complexity | 5 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | final class AuthenticatorAssertionResponse extends AbstractAuthenticatorResponse implements AuthenticatorAssertionResponseInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var ByteBuffer |
||
| 11 | */ |
||
| 12 | private $authenticatorData; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var ByteBuffer |
||
| 16 | */ |
||
| 17 | private $signature; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var ByteBuffer|null |
||
| 21 | */ |
||
| 22 | private $userHandle; |
||
| 23 | |||
| 24 | 19 | public function __construct(string $clientDataJson, ByteBuffer $authenticatorData, ByteBuffer $signature, ?ByteBuffer $userHandle) |
|
| 25 | { |
||
| 26 | 19 | parent::__construct($clientDataJson); |
|
| 27 | 14 | $this->authenticatorData = $authenticatorData; |
|
| 28 | 14 | $this->signature = $signature; |
|
| 29 | 14 | $this->userHandle = $userHandle; |
|
| 30 | 14 | } |
|
| 31 | |||
| 32 | 13 | public function getAuthenticatorData(): ByteBuffer |
|
| 33 | { |
||
| 34 | 13 | return $this->authenticatorData; |
|
| 35 | } |
||
| 36 | |||
| 37 | 6 | public function getSignature(): ByteBuffer |
|
| 38 | { |
||
| 39 | 6 | return $this->signature; |
|
| 40 | } |
||
| 41 | |||
| 42 | 12 | public function getUserHandle(): ?ByteBuffer |
|
| 43 | { |
||
| 44 | 12 | return $this->userHandle; |
|
| 45 | } |
||
| 46 | |||
| 47 | 11 | public function asAssertionResponse(): AuthenticatorAssertionResponseInterface |
|
| 50 | } |
||
| 51 | } |
||
| 52 |