| Total Complexity | 8 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | final class JsonValidationException extends UnexpectedValueException |
||
| 21 | { |
||
| 22 | private $errors; |
||
| 23 | |||
| 24 | public function __construct(string $message, $errors = [], Exception $previous = null) |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Creates an exception according to a given code with a customized message. |
||
| 33 | * |
||
| 34 | * @param int $code return code of json_last_error function |
||
| 35 | * |
||
| 36 | * @return static |
||
| 37 | */ |
||
| 38 | public static function createDecodeException(int $code): self |
||
| 61 | } |
||
| 62 | |||
| 63 | public function getErrors() |
||
| 68 |