1 | <?php |
||
18 | class InvalidParameterException extends BadRequestHttpException |
||
19 | { |
||
20 | private $parameter; |
||
21 | private $violations; |
||
22 | |||
23 | 1 | public function getParameter() |
|
27 | |||
28 | 1 | public function getViolations() |
|
32 | |||
33 | 2 | public static function withViolations(ParamInterface $parameter, ConstraintViolationListInterface $violations) |
|
52 | |||
53 | /** |
||
54 | * Do not use this method. It will be removed in 2.0. |
||
55 | * |
||
56 | * @param ParamInterface $parameter |
||
57 | * @param ConstraintViolationListInterface $violations |
||
58 | * @param string $message |
||
59 | * |
||
60 | * @return self |
||
61 | * |
||
62 | * @internal |
||
63 | */ |
||
64 | 2 | public static function withViolationsAndMessage(ParamInterface $parameter, ConstraintViolationListInterface $violations, $message) |
|
72 | } |
||
73 |