| 1 | <?php |
||
| 5 | class ActionFailureException 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 = 'Action Failure', $code = 470, $headers = [], $options = 0) |
||
| 20 | } |
||
| 21 |
Adding a
@returnannotation 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.