| Total Complexity | 4 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 50% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | final class RegistrationContext extends AbstractContext implements Serializable |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var UserHandle |
||
| 15 | */ |
||
| 16 | private $userHandle; |
||
| 17 | |||
| 18 | 2 | public function __construct(ByteBuffer $challenge, Origin $origin, string $rpId, UserHandle $userHandle) |
|
| 22 | 2 | } |
|
| 23 | |||
| 24 | 1 | public function getUserHandle(): UserHandle |
|
| 25 | { |
||
| 26 | 1 | return $this->userHandle; |
|
| 27 | } |
||
| 28 | |||
| 29 | public function __serialize(): array |
||
| 34 | ]; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function __unserialize(array $data): void |
||
| 43 |