for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Ivory Http Adapter package.
*
* (c) Eric GELOEN <[email protected]>
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/
namespace Ivory\HttpAdapter\Event\Formatter;
use Ivory\HttpAdapter\HttpAdapterException;
use Ivory\HttpAdapter\Message\InternalRequestInterface;
use Ivory\HttpAdapter\Message\ResponseInterface;
/**
* @author GeLo <[email protected]>
interface FormatterInterface
{
* @param InternalRequestInterface $request
* @return array
public function formatRequest(InternalRequestInterface $request);
* @param ResponseInterface $response
public function formatResponse(ResponseInterface $response);
* @param HttpAdapterException $exception
public function formatException(HttpAdapterException $exception);
}