1 | <?php |
||
8 | class ApiResponseException extends RuntimeException |
||
9 | { |
||
10 | /** |
||
11 | * The underlying response instance. |
||
12 | * |
||
13 | * @var \ElfSundae\Laravel\Api\Http\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 | * @return void |
||
|
|||
25 | */ |
||
26 | public function __construct($data = null, $code = -1, $headers = [], $options = 0) |
||
30 | |||
31 | /** |
||
32 | * Get the underlying response instance. |
||
33 | * |
||
34 | * @return \ElfSundae\Laravel\Api\Http\ApiResponse |
||
35 | */ |
||
36 | public function getResponse() |
||
40 | } |
||
41 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.