lib/Ingenico/Connect/Sdk/Webhooks/WebhooksHelper.php
public function unmarshal($body, $requestHeaders)
    {
        $this->validate($body, $requestHeaders);

        $response = new DefaultConnectionResponse(200, array('Content-Type' => 'application/json'), $body);
        $responseClassMap = new ResponseClassMap();
        $responseClassMap->addResponseClassName(200, '\Ingenico\Connect\Sdk\Domain\Webhooks\WebhooksEvent');

        $event = $this->getResponseFactory()->createResponse($response, $responseClassMap);
        $this->validateApiVersion($event);
        return $event;
    }
public function unmarshal($body, $requestHeaders)
    {
        $this->validate($body, $requestHeaders);

        $response = new DefaultConnectionResponse(200, array('Content-Type' => 'application/json'), $body);
        $responseClassMap = new ResponseClassMap();
        $responseClassMap->addResponseClassName(200, '\Ingenico\Connect\Sdk\Domain\Webhooks\WebhooksEvent');

        $event = $this->getResponseFactory()->createResponse($response, $responseClassMap);
        $this->validateApiVersion($event);
        return $event;
    }
public function unmarshal ( $ body , $ requestHeaders ) { $ this -> validate ( $ body , $ requestHeaders ) ; $ response = new DefaultConnectionResponse ( 200 , array ( 'Content-Type' => 'application/json' ) , $ body ) ; $ responseClassMap = new ResponseClassMap ( ) ; $ responseClassMap -> addResponseClassName ( 200 , '\Ingenico\Connect\Sdk\Domain\Webhooks\WebhooksEvent' ) ; $ event = $ this -> getResponseFactory ( ) -> createResponse ( $ response , $ responseClassMap ) ; $ this -> validateApiVersion ( $ event ) ; return $ event ; }
Unmarshals the given input stream that contains the body,
while also validating its contents using the given request headers.
@param string $body
@param array $requestHeaders
@return WebhooksEvent
@throws SignatureValidationException
@throws ApiVersionMismatchException
Unmarshals the given input stream that contains the body while also validating its contents using the given request headers .