| Total Complexity | 11 |
| Total Lines | 65 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | trait WrapsMessage |
||
| 10 | { |
||
| 11 | 3 | public function getProtocolVersion(): string |
|
| 12 | { |
||
| 13 | 3 | return $this->psr->getProtocolVersion(); |
|
| 14 | } |
||
| 15 | |||
| 16 | 2 | public function withProtocolVersion(string $version): static |
|
| 17 | { |
||
| 18 | 2 | $this->psr = $this->psr->withProtocolVersion($version); |
|
| 19 | |||
| 20 | 2 | return $this; |
|
| 21 | } |
||
| 22 | |||
| 23 | 2 | public function getHeaders(): array |
|
| 24 | { |
||
| 25 | 2 | return $this->psr->getHeaders(); |
|
| 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 | 8 | public function getHeaderLine(string $header): string |
|
| 39 | { |
||
| 40 | 8 | return $this->psr->getHeaderLine($header); |
|
| 41 | } |
||
| 42 | |||
| 43 | 2 | public function withHeader(string $header, string $value): static |
|
| 44 | { |
||
| 45 | 2 | $this->psr = $this->psr->withHeader($header, $value); |
|
| 46 | |||
| 47 | 2 | return $this; |
|
| 48 | } |
||
| 49 | |||
| 50 | 2 | public function withAddedHeader(string $header, string $value): static |
|
| 51 | { |
||
| 52 | 2 | $this->psr = $this->psr->withAddedHeader($header, $value); |
|
| 53 | |||
| 54 | 2 | return $this; |
|
| 55 | } |
||
| 56 | |||
| 57 | 2 | public function withoutHeader(string $header): static |
|
| 62 | } |
||
| 63 | |||
| 64 | 1 | public function getBody(): PsrStream |
|
| 67 | } |
||
| 68 | |||
| 69 | 3 | public function withBody(PsrStream $body): static |
|
| 70 | { |
||
| 74 | } |
||
| 75 | } |
||
| 76 |