Total Complexity | 1 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | final class FormField extends AbstractField |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * Create action name. |
||
23 | */ |
||
24 | public const ACTION_CREATE = 'create'; |
||
25 | |||
26 | /** |
||
27 | * Edit action name. |
||
28 | */ |
||
29 | public const ACTION_EDIT = 'edit'; |
||
30 | |||
31 | /** |
||
32 | * Action name. |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | public string $action; |
||
37 | |||
38 | /** |
||
39 | * Field options. |
||
40 | * |
||
41 | * @var array |
||
42 | */ |
||
43 | public array $options = []; |
||
44 | |||
45 | /** |
||
46 | * Field position. |
||
47 | * |
||
48 | * @var int |
||
49 | */ |
||
50 | public int $position; |
||
51 | |||
52 | /** |
||
53 | * Get field form settings. |
||
54 | * |
||
55 | * @return array |
||
56 | */ |
||
57 | public function getSettings(): array |
||
67 |