mailgun-php/src/Mailgun/Serializer/PSR7Serializer.php

25 lines
500 B
PHP
Raw Normal View History

<?php
namespace Mailgun\Serializer;
use Psr\Http\Message\ResponseInterface;
/**
* Do not serialize at all. Just return a PSR-7 response.
*
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
*/
class PSR7Serializer implements ResponseDeserializer
{
/**
* @param ResponseInterface $response
* @param string $class
*
* @return ResponseInterface
*/
public function deserialize(ResponseInterface $response, $class)
{
return $response;
}
}