| 1 | <?php |
||
| 18 | class ValidationException extends ClientException { |
||
| 19 | protected $validation; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Initialize an instance of the {@link ValidationException} class. |
||
| 23 | * |
||
| 24 | * @param Validation $validation The {@link Validation} object for the exception. |
||
| 25 | */ |
||
| 26 | public function __construct(Validation $validation) { |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Specify data which should be serialized to JSON. |
||
| 33 | * |
||
| 34 | * @link http://php.net/manual/en/jsonserializable.jsonserialize.php |
||
| 35 | * @return mixed data which can be serialized by <b>json_encode</b>, |
||
| 36 | * which is a value of any type other than a resource. |
||
| 37 | */ |
||
| 38 | public function jsonSerialize() { |
||
| 53 | } |
||
| 54 |