Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class TestValidator extends Validator implements TestOnly |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * Requires a specific field for test purposes. |
||
14 | * |
||
15 | * @param array $data |
||
16 | * @return null |
||
17 | */ |
||
18 | public function php($data) |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Allow us to access the form for test purposes. |
||
29 | * |
||
30 | * @return Form|null |
||
31 | */ |
||
32 | public function getForm(): ?Form |
||
37 |