| 1 | <?php |
||
| 9 | class ResponseHandler |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var Responder instance |
||
| 13 | */ |
||
| 14 | protected $responder; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param \Vinelab\Api\Responder $responder |
||
| 18 | */ |
||
| 19 | public function __construct(Responder $responder) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Format a response into an elegant api manager response. |
||
| 26 | * |
||
| 27 | * @param array $data |
||
| 28 | * @param null $total |
||
| 29 | * @param null $page |
||
| 30 | * @param null $per_page |
||
| 31 | * @param int $status |
||
| 32 | * @param array $headers |
||
| 33 | * @param int $options |
||
| 34 | * |
||
| 35 | * @internal param $arguments |
||
| 36 | * |
||
| 37 | * @return \Illuminate\Http\JsonResponse |
||
| 38 | */ |
||
| 39 | public function respond( |
||
| 64 | } |
||
| 65 |