public function sign(Signer $signer, $key)
    {
        $signer->modifyHeader($this->headers);

        $this->signature = $signer->sign(
            $this->getToken()->getPayload(),
            $key
        );

        return $this;
    }
public function sign(Signer $signer, $key)
    {
        $signer->modifyHeader($this->headers);

        $this->signature = $signer->sign(
            $this->getToken()->getPayload(),
            $key
        );

        return $this;
    }
public function sign ( Signer $ signer , $ key ) { $ signer -> modifyHeader ( $ this -> headers ) ; $ this -> signature = $ signer -> sign ( $ this -> getToken ( ) -> getPayload ( ) , $ key ) ; return $ this ; }
Signs the data

@param Signer $signer
@param string $key

@return Builder
Signs the data