1 | <?php |
||
7 | class InvalidRequestPayloadException extends \Exception |
||
8 | { |
||
9 | private $requestObject; |
||
10 | |||
11 | private $errors; |
||
12 | |||
13 | /** |
||
14 | * InvalidRequestPayloadException constructor. |
||
15 | * |
||
16 | * @param RequestObject $requestObject |
||
17 | * @param ConstraintViolationListInterface $errors |
||
18 | */ |
||
19 | public function __construct(RequestObject $requestObject, ConstraintViolationListInterface $errors) |
||
26 | |||
27 | /** |
||
28 | * @return RequestObject |
||
29 | */ |
||
30 | public function getRequestObject() |
||
34 | |||
35 | /** |
||
36 | * @return ConstraintViolationListInterface |
||
37 | */ |
||
38 | public function getErrors() |
||
42 | } |
||
43 |