FormatterInterface::formatResponse()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
ccs 0
cts 0
cp 0
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of the Ivory Http Adapter package.
5
 *
6
 * (c) Eric GELOEN <[email protected]>
7
 *
8
 * For the full copyright and license information, please read the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Ivory\HttpAdapter\Event\Formatter;
13
14
use Ivory\HttpAdapter\HttpAdapterException;
15
use Ivory\HttpAdapter\Message\InternalRequestInterface;
16
use Ivory\HttpAdapter\Message\ResponseInterface;
17
18
/**
19
 * @author GeLo <[email protected]>
20
 */
21
interface FormatterInterface
22
{
23
    /**
24
     * @param InternalRequestInterface $request
25
     *
26
     * @return array
27
     */
28
    public function formatRequest(InternalRequestInterface $request);
29
30
    /**
31
     * @param ResponseInterface $response
32
     *
33
     * @return array
34
     */
35
    public function formatResponse(ResponseInterface $response);
36
37
    /**
38
     * @param HttpAdapterException $exception
39
     *
40
     * @return array
41
     */
42
    public function formatException(HttpAdapterException $exception);
43
}
44