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