| 1 | <?php |
||
| 9 | final class JsonResponse extends BaseResponse |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Inform headers for json requests |
||
| 13 | * |
||
| 14 | * @var array |
||
| 15 | */ |
||
| 16 | protected $headers = [ |
||
| 17 | 'Content-type' => 'application/json' |
||
| 18 | ]; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Format and return to requester |
||
| 22 | * |
||
| 23 | * @return mixed |
||
| 24 | */ |
||
| 25 | public function render() |
||
| 32 | } |