Total Complexity | 1 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
11 | class ValidationException extends Exception implements JsonSerializable |
||
12 | { |
||
13 | /** |
||
14 | * The suggested HTTP response code. |
||
15 | * |
||
16 | * @var int |
||
17 | */ |
||
18 | public $responseCode = 400; |
||
19 | |||
20 | /** |
||
21 | * The suggested status code. |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | public $statusCode = 215; |
||
26 | |||
27 | /** |
||
28 | * The suggested status message. |
||
29 | * |
||
30 | * @var string |
||
31 | */ |
||
32 | public $statusMessage = 'Validation failed'; |
||
33 | |||
34 | /** |
||
35 | * @var array |
||
36 | */ |
||
37 | public $validation; |
||
38 | |||
39 | /** |
||
40 | * Define the output format |
||
41 | */ |
||
42 | public function jsonSerialize() |
||
53 |