payload = $payload; $this->protectedHeader = $protectedHeader; $this->unprotectedHeader = $unprotectedHeader; } public function getPayload(): ?string { return $this->payload; } public function getProtectedHeader(): array { return $this->protectedHeader; } public function getUnprotectedHeader(): array { return $this->unprotectedHeader; } }