@@ -18,14 +18,24 @@ discard block |
||
18 | 18 | */ |
19 | 19 | interface FieldDescriptionInterface |
20 | 20 | { |
21 | + /** |
|
22 | + * @return void |
|
23 | + */ |
|
21 | 24 | public function setFieldName(?string $fieldName): void; |
22 | 25 | |
26 | + /** |
|
27 | + * @return string|null |
|
28 | + */ |
|
23 | 29 | public function getFieldName(): ?string; |
24 | 30 | |
31 | + /** |
|
32 | + * @return void |
|
33 | + */ |
|
25 | 34 | public function setName(?string $name): void; |
26 | 35 | |
27 | 36 | /** |
28 | 37 | * Returns the name, the name can be used as a form label or table header. |
38 | + * @return string|null |
|
29 | 39 | */ |
30 | 40 | public function getName(): ?string; |
31 | 41 | |
@@ -42,6 +52,7 @@ discard block |
||
42 | 52 | * Define an option, an option is has a name and a value. |
43 | 53 | * |
44 | 54 | * @param mixed $value |
55 | + * @return void |
|
45 | 56 | */ |
46 | 57 | public function setOption(string $name, $value): void; |
47 | 58 | |
@@ -53,6 +64,7 @@ discard block |
||
53 | 64 | * Then the value are copied across to the related property value. |
54 | 65 | * |
55 | 66 | * @param array<string, mixed> $options |
67 | + * @return void |
|
56 | 68 | */ |
57 | 69 | public function setOptions(array $options): void; |
58 | 70 | |
@@ -65,21 +77,31 @@ discard block |
||
65 | 77 | |
66 | 78 | /** |
67 | 79 | * Sets the template used to render the field. |
80 | + * @param string $template |
|
81 | + * @return void |
|
68 | 82 | */ |
69 | 83 | public function setTemplate(?string $template): void; |
70 | 84 | |
85 | + /** |
|
86 | + * @return string|null |
|
87 | + */ |
|
71 | 88 | public function getTemplate(): ?string; |
72 | 89 | |
73 | 90 | /** |
74 | 91 | * Sets the field type. The type is a mandatory field as it's used to select the correct template |
75 | 92 | * or the logic associated to the current FieldDescription object. |
93 | + * @return void |
|
76 | 94 | */ |
77 | 95 | public function setType(?string $type): void; |
78 | 96 | |
97 | + /** |
|
98 | + * @return string|null |
|
99 | + */ |
|
79 | 100 | public function getType(): ?string; |
80 | 101 | |
81 | 102 | /** |
82 | 103 | * set the parent Admin (only used in nested admin). |
104 | + * @return void |
|
83 | 105 | */ |
84 | 106 | public function setParent(AdminInterface $parent): void; |
85 | 107 | |
@@ -108,6 +130,7 @@ discard block |
||
108 | 130 | |
109 | 131 | /** |
110 | 132 | * Returns the related Target object model. |
133 | + * @return string |
|
111 | 134 | */ |
112 | 135 | public function getTargetModel(): ?string; |
113 | 136 | |
@@ -141,6 +164,7 @@ discard block |
||
141 | 164 | |
142 | 165 | /** |
143 | 166 | * Set the association admin instance (only used if the field is linked to an Admin). |
167 | + * @return void |
|
144 | 168 | */ |
145 | 169 | public function setAssociationAdmin(AdminInterface $associationAdmin): void; |
146 | 170 | |
@@ -165,6 +189,9 @@ discard block |
||
165 | 189 | */ |
166 | 190 | public function getValue(object $object); |
167 | 191 | |
192 | + /** |
|
193 | + * @return void |
|
194 | + */ |
|
168 | 195 | public function setAdmin(AdminInterface $admin): void; |
169 | 196 | |
170 | 197 | /** |
@@ -180,6 +207,7 @@ discard block |
||
180 | 207 | * @param array<string, mixed> $options |
181 | 208 | * |
182 | 209 | * @throws \RuntimeException |
210 | + * @return void |
|
183 | 211 | */ |
184 | 212 | public function mergeOption(string $name, array $options = []): void; |
185 | 213 | |
@@ -187,6 +215,7 @@ discard block |
||
187 | 215 | * Merge options values. |
188 | 216 | * |
189 | 217 | * @param array<string, mixed> $options |
218 | + * @return void |
|
190 | 219 | */ |
191 | 220 | public function mergeOptions(array $options = []): void; |
192 | 221 | |
@@ -194,6 +223,7 @@ discard block |
||
194 | 223 | * set the original mapping type (only used if the field is linked to an entity). |
195 | 224 | * |
196 | 225 | * @param int|string $mappingType |
226 | + * @return void |
|
197 | 227 | */ |
198 | 228 | public function setMappingType($mappingType): void; |
199 | 229 |
@@ -67,6 +67,7 @@ |
||
67 | 67 | |
68 | 68 | /** |
69 | 69 | * @param array<string, mixed> $options |
70 | + * @param PropertyAccessorInterface $propertyAccessor |
|
70 | 71 | */ |
71 | 72 | public function __construct( |
72 | 73 | ContainerInterface $container, |