@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | * Get a component by its name. |
138 | 138 | * |
139 | 139 | * @param string $name |
140 | - * @return UI\AbstractComponent |
|
140 | + * @return AbstractComponent |
|
141 | 141 | */ |
142 | 142 | public function get_component( $name ) |
143 | 143 | { |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | /** |
148 | 148 | * Get all components. |
149 | 149 | * |
150 | - * @return array |
|
150 | + * @return AbstractComponent[] |
|
151 | 151 | */ |
152 | 152 | public function get_components() |
153 | 153 | { |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | /** |
182 | 182 | * Check if the given component is disabled. |
183 | 183 | * |
184 | - * @param UI\AbstractComponent $component |
|
184 | + * @param ValueComponentInterface $component |
|
185 | 185 | * @return boolean |
186 | 186 | */ |
187 | 187 | private function is_disabled( $component ) |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | /** |
198 | 198 | * Filter the component's value using its filter function (if applicable) |
199 | 199 | * |
200 | - * @param UI\AbstractComponent $component |
|
200 | + * @param ValueComponentInterface $component |
|
201 | 201 | */ |
202 | 202 | private function filter( $component ) |
203 | 203 | { |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | * If the value is invalid, the old value is used, and an error message is |
220 | 220 | * saved into the errors array as component_name => error_message. |
221 | 221 | * |
222 | - * @param UI\AbstractComponent $component The component to validate. |
|
222 | + * @param ValueComponentInterface $component The component to validate. |
|
223 | 223 | */ |
224 | 224 | private function validate( $component ) |
225 | 225 | { |