MessageInterface
last analyzed

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 47
ccs 0
cts 0
cp 0
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
getParameters() 0 1 ?
hasParameter() 0 1 ?
getParameter() 0 1 ?
withParameter() 0 1 ?
withAddedParameter() 0 1 ?
withoutParameter() 0 1 ?
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\Message;
13
14
use Psr\Http\Message\MessageInterface as PsrMessageInterface;
15
16
/**
17
 * @author GeLo <[email protected]>
18
 */
19
interface MessageInterface extends PsrMessageInterface
20
{
21
    const PROTOCOL_VERSION_1_0 = '1.0';
22
    const PROTOCOL_VERSION_1_1 = '1.1';
23
24
    /**
25
     * @return array
26
     */
27
    public function getParameters();
28
29
    /**
30
     * @param string $name
31
     *
32
     * @return bool
33
     */
34
    public function hasParameter($name);
35
36
    /**
37
     * @param string $name
38
     *
39
     * @return mixed
40
     */
41
    public function getParameter($name);
42
43
    /**
44
     * @param string $name
45
     * @param mixed  $value
46
     *
47
     * @return MessageInterface
48
     */
49
    public function withParameter($name, $value);
50
51
    /**
52
     * @param string $name
53
     * @param mixed  $value
54
     *
55
     * @return MessageInterface
56
     */
57
    public function withAddedParameter($name, $value);
58
59
    /**
60
     * @param string $name
61
     *
62
     * @return MessageInterface
63
     */
64
    public function withoutParameter($name);
65
}
66