@@ -63,6 +63,9 @@ discard block |
||
63 | 63 | $this->fixFieldDescription($admin, $fieldDescription); |
64 | 64 | } |
65 | 65 | |
66 | + /** |
|
67 | + * @param string|null $type |
|
68 | + */ |
|
66 | 69 | public function addField(FieldDescriptionCollection $list, ?string $type, FieldDescriptionInterface $fieldDescription, AdminInterface $admin): void |
67 | 70 | { |
68 | 71 | $this->buildField($type, $fieldDescription, $admin); |
@@ -187,6 +190,9 @@ discard block |
||
187 | 190 | return $fieldDescription; |
188 | 191 | } |
189 | 192 | |
193 | + /** |
|
194 | + * @return string |
|
195 | + */ |
|
190 | 196 | private function getTemplate(string $type): ?string |
191 | 197 | { |
192 | 198 | if (!isset($this->templates[$type])) { |
@@ -47,6 +47,9 @@ discard block |
||
47 | 47 | return new FieldDescriptionCollection(); |
48 | 48 | } |
49 | 49 | |
50 | + /** |
|
51 | + * @param null|string $type |
|
52 | + */ |
|
50 | 53 | public function addField(FieldDescriptionCollection $list, ?string $type, FieldDescriptionInterface $fieldDescription, AdminInterface $admin): void |
51 | 54 | { |
52 | 55 | if (null === $type) { |
@@ -103,6 +106,9 @@ discard block |
||
103 | 106 | } |
104 | 107 | } |
105 | 108 | |
109 | + /** |
|
110 | + * @return string |
|
111 | + */ |
|
106 | 112 | private function getTemplate(string $type): ?string |
107 | 113 | { |
108 | 114 | if (!isset($this->templates[$type])) { |