| Total Complexity | 4 |
| Total Lines | 64 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | final class Response extends HttpResponse |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * A boolean indicating whether the response was finished or not |
||
| 11 | * |
||
| 12 | * @var bool|null |
||
| 13 | */ |
||
| 14 | private $finished; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var bool|null |
||
| 18 | */ |
||
| 19 | private $headersSent; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param bool|null $finished |
||
| 23 | * @param array|null $headers |
||
| 24 | * @param bool|null $headersSent |
||
| 25 | * @param int|null $statusCode |
||
| 26 | * @param int|null $transferSize |
||
| 27 | * @param int|null $encodedBodySize |
||
| 28 | * @param int|null $decodedBodySize |
||
| 29 | */ |
||
| 30 | 3 | public function __construct( |
|
| 43 | 3 | } |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @return bool|null |
||
| 47 | */ |
||
| 48 | 1 | public function finished() |
|
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return bool|null |
||
| 55 | */ |
||
| 56 | 1 | public function headersSent() |
|
| 57 | { |
||
| 58 | 1 | return $this->headersSent; |
|
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return array |
||
| 63 | */ |
||
| 64 | 1 | public function jsonSerialize() |
|
| 71 | ] |
||
| 72 | 1 | ); |
|
| 75 |