1 | <?php |
||
5 | class HandleFormContext |
||
6 | { |
||
7 | /** |
||
8 | * @var bool |
||
9 | */ |
||
10 | private $success; |
||
11 | |||
12 | /** |
||
13 | * @var string[] |
||
14 | */ |
||
15 | private $errors; |
||
16 | |||
17 | /** |
||
18 | * @param bool $success |
||
19 | * @param array $errors |
||
20 | */ |
||
21 | public function __construct($success, array $errors) |
||
26 | |||
27 | /** |
||
28 | * @return bool |
||
29 | */ |
||
30 | public function isSuccess() |
||
34 | |||
35 | /** |
||
36 | * List of translated error message to display in the frontend. |
||
37 | * |
||
38 | * @return string[] |
||
39 | */ |
||
40 | public function getErrors() |
||
44 | } |
||
45 |