Total Complexity | 2 |
Total Lines | 62 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
24 | #[Attribute(Attribute::TARGET_PROPERTY)] |
||
25 | final class FormField extends AbstractField implements |
||
26 | ActionAnnotationInterface, |
||
27 | PositionAnnotationInterface |
||
28 | { |
||
29 | |||
30 | /** |
||
31 | * Create action name. |
||
32 | */ |
||
33 | public const ACTION_CREATE = 'create'; |
||
34 | |||
35 | /** |
||
36 | * Edit action name. |
||
37 | */ |
||
38 | public const ACTION_EDIT = 'edit'; |
||
39 | |||
40 | /** |
||
41 | * Action name. |
||
42 | * |
||
43 | * @var string|null |
||
44 | */ |
||
45 | public ?string $action = null; |
||
46 | |||
47 | /** |
||
48 | * Field options. |
||
49 | * |
||
50 | * @var array |
||
51 | */ |
||
52 | public array $options = []; |
||
53 | |||
54 | /** |
||
55 | * {@inheritDoc} |
||
56 | * |
||
57 | * @param string|null $action Action name. |
||
58 | * @param array $options Field options. |
||
59 | * |
||
60 | * @throws ReflectionException |
||
61 | */ |
||
62 | public function __construct( |
||
73 | } |
||
74 | |||
75 | /** |
||
76 | * Get field form settings. |
||
77 | * |
||
78 | * @return array |
||
79 | */ |
||
80 | public function getSettings(): array |
||
90 |