| Total Complexity | 11 |
| Total Lines | 106 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class Message implements \Psr\Http\Message\MessageInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Header of message |
||
| 17 | * @var array |
||
| 18 | */ |
||
| 19 | private $headers = array(); |
||
|
|
|||
| 20 | |||
| 21 | /** |
||
| 22 | * Body content |
||
| 23 | * @var \one\Psr7\Stream |
||
| 24 | */ |
||
| 25 | private $body; |
||
| 26 | /** |
||
| 27 | * Type of message (request or response) |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | private $typeOfMessage; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Http Protocol version |
||
| 34 | * @var string |
||
| 35 | */ |
||
| 36 | private $protocolVersion; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Header line |
||
| 40 | * @var string |
||
| 41 | */ |
||
| 42 | private $headerLine; |
||
| 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) |
||
| 70 | } |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @inheritDoc |
||
| 74 | */ |
||
| 75 | public function getHeader($name) |
||
| 76 | { |
||
| 77 | } |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @inheritDoc |
||
| 81 | */ |
||
| 82 | public function getHeaderLine($name) |
||
| 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) |
||
| 98 | } |
||
| 99 | |||
| 100 | /** |
||
| 101 | * @inheritDoc |
||
| 102 | */ |
||
| 103 | public function withoutHeader($name) |
||
| 104 | { |
||
| 105 | } |
||
| 106 | |||
| 107 | /** |
||
| 108 | * @inheritDoc |
||
| 109 | */ |
||
| 110 | public function getBody() |
||
| 112 | } |
||
| 113 | |||
| 114 | /** |
||
| 115 | * @inheritDoc |
||
| 116 | */ |
||
| 117 | public function withBody(\Psr\Http\Message\StreamInterface $body) |
||
| 119 | } |
||
| 120 | } |
||
| 121 |