| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class Response implements ResponseInterface |
||
| 19 | { |
||
| 20 | use THeaders; |
||
| 21 | use TBody; |
||
| 22 | use TProtocol; |
||
| 23 | |||
| 24 | protected int $status = 0; |
||
| 25 | protected string $reason = 'KO'; |
||
| 26 | |||
| 27 | 1 | public function getStatusCode(): int |
|
| 30 | } |
||
| 31 | |||
| 32 | 1 | public function withStatus(int $code, string $reasonPhrase = ''): ResponseInterface |
|
| 33 | { |
||
| 34 | 1 | $this->status = $code; |
|
| 35 | 1 | $this->reason = $reasonPhrase; |
|
| 36 | 1 | return $this; |
|
| 37 | } |
||
| 38 | |||
| 39 | 1 | public function getReasonPhrase(): string |
|
| 42 | } |
||
| 43 | } |
||
| 44 |