| 1 | <?php |
||
| 8 | class ApiResponseException extends RuntimeException |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The underlying response instance. |
||
| 12 | * |
||
| 13 | * @var \ElfSundae\Laravel\Api\ApiResponse |
||
| 14 | */ |
||
| 15 | protected $response; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Create a new exception instance. |
||
| 19 | * |
||
| 20 | * @param mixed $data |
||
| 21 | * @param int $code |
||
| 22 | * @param array $headers |
||
| 23 | * @param int $options |
||
| 24 | */ |
||
| 25 | public function __construct($data = null, $code = -1, $headers = [], $options = 0) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Get the underlying response instance. |
||
| 32 | * |
||
| 33 | * @return \ElfSundae\Laravel\Api\ApiResponse |
||
| 34 | */ |
||
| 35 | public function getResponse() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Render the exception into an HTTP response. |
||
| 42 | * |
||
| 43 | * @param \Illuminate\Http\Request $request |
||
| 44 | * @return \Illuminate\Http\Response |
||
| 45 | */ |
||
| 46 | public function render($request) |
||
| 50 | } |
||
| 51 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.