PsrHttpAdapterInterface::sendRequests()
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;
13
14
use Ivory\HttpAdapter\Message\ResponseInterface;
15
use Psr\Http\Message\RequestInterface;
16
17
/**
18
 * @author GeLo <[email protected]>
19
 */
20
interface PsrHttpAdapterInterface
21
{
22
    const VERSION = '0.8.0-DEV';
23
    const VERSION_ID = '00800';
24
    const MAJOR_VERSION = '0';
25
    const MINOR_VERSION = '8';
26
    const PATCH_VERSION = '0';
27
    const EXTRA_VERSION = 'DEV';
28
29
    /**
30
     * @return ConfigurationInterface
31
     */
32
    public function getConfiguration();
33
34
    /**
35
     * @param ConfigurationInterface $configuration
36
     */
37
    public function setConfiguration(ConfigurationInterface $configuration);
38
39
    /**
40
     * @param RequestInterface $request
41
     *
42
     * @throws HttpAdapterException
43
     *
44
     * @return ResponseInterface
45
     */
46
    public function sendRequest(RequestInterface $request);
47
48
    /**
49
     * @param array $requests
50
     *
51
     * @throws MultiHttpAdapterException
52
     *
53
     * @return array $responses
54
     */
55
    public function sendRequests(array $requests);
56
57
    /**
58
     * @return string
59
     */
60
    public function getName();
61
}
62