public function withSharedHeader(array $sharedHeader): self
    {
        $this->checkDuplicatedHeaderParameters($this->sharedProtectedHeader, $sharedHeader);
        foreach ($this->recipients as $recipient) {
            $this->checkDuplicatedHeaderParameters($sharedHeader, $recipient->getHeader());
        }
        $clone = clone $this;
        $clone->sharedHeader = $sharedHeader;

        return $clone;
    }
public function withSharedHeader(array $sharedHeader): self
    {
        $this->checkDuplicatedHeaderParameters($this->sharedProtectedHeader, $sharedHeader);
        foreach ($this->recipients as $recipient) {
            $this->checkDuplicatedHeaderParameters($sharedHeader, $recipient->getHeader());
        }
        $clone = clone $this;
        $clone->sharedHeader = $sharedHeader;

        return $clone;
    }
public function withSharedHeader ( array $ sharedHeader ) : self { $ this -> checkDuplicatedHeaderParameters ( $ this -> sharedProtectedHeader , $ sharedHeader ) ; foreach ( $ this -> recipients as $ recipient ) { $ this -> checkDuplicatedHeaderParameters ( $ sharedHeader , $ recipient -> getHeader ( ) ) ; } $ clone = clone $ this ; $ clone -> sharedHeader = $ sharedHeader ; return $ clone ; }
Set the shared header of the JWE to build.

@return JWEBuilder
Set the shared header of the JWE to build .