@@ -29,6 +29,8 @@ abstract class Component extends Nette\ComponentModel\Container implements Signa
2929
3030 /** @var array<callable(self): void> Occurs when component is attached to presenter */
3131 public array $ onAnchor = [];
32+
33+ /** @var array<string, mixed> */
3234 protected array $ params = [];
3335
3436
@@ -99,6 +101,7 @@ protected function validateParent(Nette\ComponentModel\IContainer $parent): void
99101
100102 /**
101103 * Calls public method if exists.
104+ * @param array<string, mixed> $params
102105 */
103106 protected function tryCall (string $ method , array $ params ): bool
104107 {
@@ -146,6 +149,7 @@ public static function getReflection(): ComponentReflection
146149
147150 /**
148151 * Loads state information.
152+ * @param array<string, mixed> $params
149153 */
150154 public function loadState (array $ params ): void
151155 {
@@ -174,6 +178,7 @@ public function loadState(array $params): void
174178
175179 /**
176180 * Saves state information for next request.
181+ * @param array<string, mixed> $params
177182 */
178183 public function saveState (array &$ params ): void
179184 {
@@ -235,6 +240,7 @@ final public function getParameter(string $name): mixed
235240
236241 /**
237242 * Returns component parameters.
243+ * @return array<string, mixed>
238244 */
239245 final public function getParameters (): array
240246 {
0 commit comments