1 | <?php |
||
5 | class InvalidInputException extends ApiResponseException |
||
6 | { |
||
7 | /** |
||
8 | * Create a new exception instance. |
||
9 | * |
||
10 | * @param mixed $data |
||
11 | * @param int $code |
||
12 | * @param array $headers |
||
13 | * @param int $options |
||
14 | * @return void |
||
|
|||
15 | */ |
||
16 | public function __construct($data = 'Invalid Input', $code = 421, $headers = [], $options = 0) |
||
20 | } |
||
21 |
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.