aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/WidgetContainer.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/classes/WidgetContainer.php')
-rw-r--r--lib/classes/WidgetContainer.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/classes/WidgetContainer.php b/lib/classes/WidgetContainer.php
index b4aaa8c..108477a 100644
--- a/lib/classes/WidgetContainer.php
+++ b/lib/classes/WidgetContainer.php
@@ -46,10 +46,11 @@ abstract class WidgetContainer
/**
* Add a widget to the container.
*
- * @param Widget $widget The actual widget
+ * @template W of Widget
+ * @param W $widget The actual widget
* @param String $index Optional index/name of the widget, defaults to
* class name without "widget"
- * @return Widget The added widget to allow for easier handling
+ * @return W The added widget to allow for easier handling
*/
public function addWidget(Widget $widget, $index = null)
{