| Total Complexity | 1 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class Response implements ResponseInterface |
||
| 11 | { |
||
| 12 | use ResponseTrait; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param int $statusCode The HTTP status code. |
||
| 16 | * @param array $headers The headers to send with the response. |
||
| 17 | * @param StreamInterface|string|resource|null $body The body of the response. Must be one of the following: |
||
| 18 | * - an instance of `StreamInterface`; |
||
| 19 | * - a string stream identifier (e.g., 'php://temp') or a file path; |
||
| 20 | * - a valid stream resource; |
||
| 21 | * - `null`. |
||
| 22 | * @param string $protocol The HTTP protocol version. |
||
| 23 | * @param string $reasonPhrase The reason phrase associated with the status code. |
||
| 24 | */ |
||
| 25 | 74 | public function __construct( |
|
| 35 |