|null */ private readonly ?array $didDoc = null, ) { } public function getAccessJwt(): string { return $this->accessJwt; } public function getRefreshJwt(): string { return $this->refreshJwt; } public function getDid(): string { return $this->did; } public function getHandle(): string { return $this->handle; } public function getEmail(): ?string { return $this->email; } public function isEmailConfirmed(): bool { return $this->emailConfirmed; } public function isActive(): bool { return $this->active; } /** * @return array|null */ public function getDidDoc(): ?array { return $this->didDoc; } public function getStatus(): ?string { return $this->status; } /** * @return array */ #[\ReturnTypeWillChange] public function jsonSerialize(): array { $payload = [ 'accessJwt' => $this->accessJwt, 'refreshJwt' => $this->refreshJwt, 'handle' => $this->handle, 'did' => $this->did, 'emailConfirmed' => $this->emailConfirmed, 'active' => $this->active, ]; if ($this->email !== null) { $payload['email'] = $this->email; } if ($this->didDoc !== null) { $payload['didDoc'] = $this->didDoc; } if ($this->status !== null) { $payload['status'] = $this->status; } return $payload; } }