*/ class BeforeJWEComputationEvent { private $header; /** * @param array $header */ public function __construct(array $header) { $this->header = $header; } public function setHeader(string $key, mixed $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; } }