@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | |
53 | 53 | /** |
54 | 54 | * |
55 | - * @param type $type |
|
56 | - * @param type $props |
|
55 | + * @param string $type |
|
56 | + * @param type string |
|
57 | 57 | * @throws \RuntimeException |
58 | 58 | */ |
59 | 59 | private static function create_core_component( $type, $props ) |
@@ -79,8 +79,8 @@ discard block |
||
79 | 79 | |
80 | 80 | /** |
81 | 81 | * |
82 | - * @param type $type |
|
83 | - * @param type $props |
|
82 | + * @param string $type |
|
83 | + * @param type string |
|
84 | 84 | * @throws \RuntimeException |
85 | 85 | */ |
86 | 86 | private static function create_registered_component( $type, $props ) |
@@ -123,7 +123,7 @@ |
||
123 | 123 | /** |
124 | 124 | * |
125 | 125 | * @param type $args |
126 | - * @return type |
|
126 | + * @return AbstractComponent |
|
127 | 127 | */ |
128 | 128 | private function create_component( $args ) |
129 | 129 | { |
@@ -43,7 +43,7 @@ |
||
43 | 43 | * handle this. |
44 | 44 | * |
45 | 45 | * @param [string] $v |
46 | - * @return void |
|
46 | + * @return string |
|
47 | 47 | */ |
48 | 48 | public function filter($v) |
49 | 49 | { |
@@ -45,7 +45,7 @@ |
||
45 | 45 | * will handle this. |
46 | 46 | * |
47 | 47 | * @param [string] $v |
48 | - * @return void |
|
48 | + * @return double |
|
49 | 49 | */ |
50 | 50 | public function filter($v) |
51 | 51 | { |
@@ -159,7 +159,7 @@ |
||
159 | 159 | /** |
160 | 160 | * Filter the list of components |
161 | 161 | * |
162 | - * @param function $callable |
|
162 | + * @param \Closure $callable |
|
163 | 163 | * @return array |
164 | 164 | */ |
165 | 165 | private function filter( $callable ) |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | /** |
130 | 130 | * Get all components. |
131 | 131 | * |
132 | - * @return array |
|
132 | + * @return AbstractComponent[] |
|
133 | 133 | */ |
134 | 134 | public function get_component_list() |
135 | 135 | { |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | /** |
164 | 164 | * Check if the given component is disabled. |
165 | 165 | * |
166 | - * @param UI\AbstractComponent $component |
|
166 | + * @param ValueComponentInterface $component |
|
167 | 167 | * @return boolean |
168 | 168 | */ |
169 | 169 | private function is_disabled( $component ) |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | /** |
180 | 180 | * Filter the component's value using its filter function (if applicable) |
181 | 181 | * |
182 | - * @param UI\AbstractComponent $component |
|
182 | + * @param ValueComponentInterface $component |
|
183 | 183 | */ |
184 | 184 | private function filter( $component ) |
185 | 185 | { |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | * If the value is invalid, the old value is used, and an error message is |
202 | 202 | * saved into the errors array as component_name => error_message. |
203 | 203 | * |
204 | - * @param UI\AbstractComponent $component The component to validate. |
|
204 | + * @param ValueComponentInterface $component The component to validate. |
|
205 | 205 | */ |
206 | 206 | private function validate( $component ) |
207 | 207 | { |