src/Soap/SoapClient.php
public function setSignature($parameters, $privateKey, $service, $endpoint, $timestamp, $nonce)
    {
        $this->__setCookie('signature', rawurlencode($this->sign($privateKey, array_merge($parameters, [
            '__service'   => $service,
            '__hostname'  => $endpoint,
            '__timestamp' => $timestamp,
            '__nonce'     => $nonce,
        ]))));
    }
public function setSignature($parameters, $privateKey, $service, $endpoint, $timestamp, $nonce)
    {
        $this->__setCookie('signature', rawurlencode($this->sign($privateKey, array_merge($parameters, [
            '__service'   => $service,
            '__hostname'  => $endpoint,
            '__timestamp' => $timestamp,
            '__nonce'     => $nonce,
        ]))));
    }
public function setSignature ( $ parameters , $ privateKey , $ service , $ endpoint , $ timestamp , $ nonce ) { $ this -> __setCookie ( 'signature' , rawurlencode ( $ this -> sign ( $ privateKey , array_merge ( $ parameters , [ '__service' => $ service , '__hostname' => $ endpoint , '__timestamp' => $ timestamp , '__nonce' => $ nonce , ] ) ) ) ) ; }
Create and set the signature cookie.

@param array  $parameters Parameters to sign
@param string $privateKey Private key to sign the request with
@param string $service    WSDL service
@param string $endpoint   TransIP endpoint
@param string $timestamp  Timestamp
@param string $nonce      Nonce
Create and set the signature cookie .