mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2025-02-28 10:23:13 +03:00
25 lines
500 B
PHP
25 lines
500 B
PHP
|
<?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;
|
||
|
}
|
||
|
}
|