1 | <?php |
||
24 | class Message implements MessageInterface |
||
25 | { |
||
26 | /** @var array Cached HTTP header collection with lowercase key to values */ |
||
27 | protected $headers = array(); |
||
28 | /** @var string */ |
||
29 | protected $protocol = '1.1'; |
||
30 | /** @var StreamInterface */ |
||
31 | protected $stream; |
||
32 | |||
33 | /** {@inheritdoc} */ |
||
34 | 1 | public function getProtocolVersion() |
|
38 | |||
39 | /** {@inheritdoc} */ |
||
40 | 2 | public function withProtocolVersion($version) |
|
46 | |||
47 | /** {@inheritdoc} */ |
||
48 | 2 | public function getHeaders() |
|
52 | |||
53 | /** {@inheritdoc} */ |
||
54 | 4 | public function hasHeader($header) |
|
58 | |||
59 | /** {@inheritdoc} */ |
||
60 | 6 | public function getHeader($header) |
|
66 | |||
67 | /** {@inheritdoc} */ |
||
68 | 6 | public function getHeaderLine($header) |
|
72 | |||
73 | /** {@inheritdoc} */ |
||
74 | 5 | public function withHeader($header, $value) |
|
86 | |||
87 | /** {@inheritdoc} */ |
||
88 | 4 | public function withAddedHeader($header, $value) |
|
97 | |||
98 | /** {@inheritdoc} */ |
||
99 | 1 | public function withoutHeader($header) |
|
108 | |||
109 | /** {@inheritdoc} */ |
||
110 | 5 | public function getBody() |
|
118 | |||
119 | /** {@inheritdoc} */ |
||
120 | 2 | public function withBody(StreamInterface $body) |
|
126 | } |
||
127 |