Passed
Pull Request — master (#38)
by kenny
01:52
created

Message::withHeader()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace One\Psr7;
4
5
/**
6
 * MessageInterface Implementation
7
 * Structure of HTTP Message
8
 * Request line
9
 * Header(s)
10
 * Empty line
11
 * Body
12
 */
13
class Message implements \Psr\Http\Message\MessageInterface
14
{
15
    /**
16
     * Header of message
17
     * @var array
18
     */
19
    private $headers = array();
0 ignored issues
show
introduced by
The private property $headers is not used, and could be removed.
Loading history...
20
21
    /**
22
     * Body content
23
     * @var \one\Psr7\Stream
24
     */
25
    private $body;
0 ignored issues
show
introduced by
The private property $body is not used, and could be removed.
Loading history...
26
    /**
27
     * Type of message (request or response)
28
     * @var string
29
     */
30
    private $typeOfMessage;
0 ignored issues
show
introduced by
The private property $typeOfMessage is not used, and could be removed.
Loading history...
31
32
    /**
33
     * Http Protocol version
34
     * @var string
35
     */
36
    private $protocolVersion;
0 ignored issues
show
introduced by
The private property $protocolVersion is not used, and could be removed.
Loading history...
37
38
    /**
39
     * Header line
40
     * @var string
41
     */
42
    private $headerLine;
0 ignored issues
show
introduced by
The private property $headerLine is not used, and could be removed.
Loading history...
43
44
    /**
45
     * @inheritDoc
46
     */
47
    public function getProtocolVersion()
48
    {
49
    }
50
51
    /**
52
     * @inheritDoc
53
     */
54
    public function withProtocolVersion($version)
55
    {
56
    }
57
58
    /**
59
     * @inheritDoc
60
     */
61
    public function getHeaders()
62
    {
63
    }
64
65
    /**
66
     * @inheritDoc
67
     */
68
    public function hasHeader($name)
69
    {
70
    }
71
72
    /**
73
     * @inheritDoc
74
     */
75
    public function getHeader($name)
76
    {
77
    }
78
79
    /**
80
     * @inheritDoc
81
     */
82
    public function getHeaderLine($name)
83
    {
84
    }
85
86
    /**
87
     * @inheritDoc
88
     */
89
    public function withHeader($name, $value)
90
    {
91
    }
92
93
    /**
94
     * @inheritDoc
95
     */
96
    public function withAddedHeader($name, $value)
97
    {
98
    }
99
100
    /**
101
     * @inheritDoc
102
     */
103
    public function withoutHeader($name)
104
    {
105
    }
106
107
    /**
108
     * @inheritDoc
109
     */
110
    public function getBody()
111
    {
112
    }
113
114
    /**
115
     * @inheritDoc
116
     */
117
    public function withBody(\Psr\Http\Message\StreamInterface $body)
118
    {
119
    }
120
}
121