public function getSharedProtectedHeader($key) { if ($this->hasSharedProtectedHeader($key)) { return $this->shared_protected_headers[$key]; } throw new \InvalidArgumentException(sprintf('The shared protected header "%s" does not exist.', $key)); }