protected function generateFromPsr7Request(Psr7Request $request) : string
    {
        $id = isset($this->request->getHeader('X-SIGNED-ID')[0]) ?
            $this->request->getHeader('X-SIGNED-ID')[0] : '';
        $timestamp = isset($this->request->getHeader('X-SIGNED-TIMESTAMP')[0]) ?
            $this->request->getHeader('X-SIGNED-TIMESTAMP')[0] : '';

        return $this->generate(
            (string) $id,
            (string) $this->request->getMethod(),
            (string) $timestamp,
            (string) $this->request->getUri(),
            (string) $this->request->getBody()
        );
    }
protected function generateFromPsr7Request(Psr7Request $request) : string
    {
        $id = isset($this->request->getHeader('X-SIGNED-ID')[0]) ?
            $this->request->getHeader('X-SIGNED-ID')[0] : '';
        $timestamp = isset($this->request->getHeader('X-SIGNED-TIMESTAMP')[0]) ?
            $this->request->getHeader('X-SIGNED-TIMESTAMP')[0] : '';

        return $this->generate(
            (string) $id,
            (string) $this->request->getMethod(),
            (string) $timestamp,
            (string) $this->request->getUri(),
            (string) $this->request->getBody()
        );
    }
protected function generateFromPsr7Request ( Psr7Request $ request ) : string { $ id = isset ( $ this -> request -> getHeader ( 'X-SIGNED-ID' ) [ 0 ] ) ? $ this -> request -> getHeader ( 'X-SIGNED-ID' ) [ 0 ] : '' ; $ timestamp = isset ( $ this -> request -> getHeader ( 'X-SIGNED-TIMESTAMP' ) [ 0 ] ) ? $ this -> request -> getHeader ( 'X-SIGNED-TIMESTAMP' ) [ 0 ] : '' ; return $ this -> generate ( ( string ) $ id , ( string ) $ this -> request -> getMethod ( ) , ( string ) $ timestamp , ( string ) $ this -> request -> getUri ( ) , ( string ) $ this -> request -> getBody ( ) ) ; }
Returns the payload from a guzzle request.

@param \Psr\Http\Message\RequestInterface $request
An instance of the guzzle request to extract a payload from.

@return string
The payload.
Returns the payload from a guzzle request .