Total Complexity | 11 |
Total Lines | 65 |
Duplicated Lines | 0 % |
Coverage | 66.67% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | trait WrapsMessage |
||
10 | { |
||
11 | 1 | public function getProtocolVersion(): string |
|
12 | { |
||
13 | 1 | return $this->psr->getProtocolVersion(); |
|
14 | } |
||
15 | |||
16 | public function withProtocolVersion(string $version): static |
||
17 | { |
||
18 | $this->psr = $this->psr->withProtocolVersion($version); |
||
|
|||
19 | |||
20 | return $this; |
||
21 | } |
||
22 | |||
23 | 1 | public function getHeaders(): array |
|
26 | } |
||
27 | |||
28 | 1 | public function hasHeader(string $header): bool |
|
29 | { |
||
30 | 1 | return $this->psr->hasHeader($header); |
|
31 | } |
||
32 | |||
33 | 1 | public function getHeader(string $header): array |
|
34 | { |
||
35 | 1 | return $this->psr->getHeader($header); |
|
36 | } |
||
37 | |||
38 | 2 | public function getHeaderLine(string $header): string |
|
41 | } |
||
42 | |||
43 | public function withHeader(string $header, string $value): static |
||
44 | { |
||
45 | $this->psr = $this->psr->withHeader($header, $value); |
||
46 | |||
47 | return $this; |
||
48 | } |
||
49 | |||
50 | public function withAddedHeader(string $header, string $value): static |
||
51 | { |
||
52 | $this->psr = $this->psr->withAddedHeader($header, $value); |
||
53 | |||
54 | return $this; |
||
55 | } |
||
56 | |||
57 | 1 | public function withoutHeader(string $header): static |
|
62 | } |
||
63 | |||
64 | 1 | public function getBody(): PsrStream |
|
65 | { |
||
66 | 1 | return $this->psr->getBody(); |
|
67 | } |
||
68 | |||
69 | 1 | public function withBody(PsrStream $body): static |
|
74 | } |
||
75 | } |
||
76 |