*/ class BeforeJWEComputationEvent { /** * @var array */ private $header; public function __construct(array $header) { $this->header = $header; } /** * @param mixed $value */ public function setHeader(string $key, $value): self { $this->header[$key] = $value; return $this; } public function removeHeader(string $key): self { unset($this->header[$key]); return $this; } /** * @return array */ public function getHeader(): array { return $this->header; } }