1 | <?php |
||
15 | class ValidationExceptionError |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $property; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $message; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $constraint; |
||
32 | |||
33 | /** |
||
34 | * @param array $error errpr |
||
35 | */ |
||
36 | 1 | public function __construct(array $error) |
|
48 | |||
49 | /** |
||
50 | * get property path |
||
51 | * |
||
52 | * @return string |
||
53 | */ |
||
54 | public function getProperty() |
||
58 | |||
59 | /** |
||
60 | * get message |
||
61 | * |
||
62 | * @return string |
||
63 | */ |
||
64 | public function getMessage() |
||
68 | |||
69 | /** |
||
70 | * get constraint name |
||
71 | * |
||
72 | * @return string |
||
73 | */ |
||
74 | public function getConstraint() |
||
78 | } |
||
79 |