protected function generateHmac($privateKey, $requestedRoute, $data)
    {
        $completeString = $requestedRoute . json_encode($data);

        return hash_hmac('sha256', $completeString, $privateKey);
    }
protected function generateHmac($privateKey, $requestedRoute, $data)
    {
        $completeString = $requestedRoute . json_encode($data);

        return hash_hmac('sha256', $completeString, $privateKey);
    }
protected function generateHmac ( $ privateKey , $ requestedRoute , $ data ) { $ completeString = $ requestedRoute . json_encode ( $ data ) ; return hash_hmac ( 'sha256' , $ completeString , $ privateKey ) ; }
Generates the hmac for the given data

@access protected
@param string $privateKey
@param string $requestedRoute
@param array $data
@return string
Generates the hmac for the given data