Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function __construct(array $data, int $statusCode = 200, array $headers = [], $body = null, string $version = '1.1', string $reason = null) |
||
12 | { |
||
13 | $body = json_encode($data); |
||
14 | parent::__construct($statusCode, $headers + [ |
||
15 | 'Content-Type' => 'application/json' |
||
16 | ], $body, $version, $reason); |
||
17 | } |
||
18 | } |