diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2022-11-24 10:29:24 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2022-11-24 10:29:24 +0000 |
| commit | 7dddea8ccca601bf2da28960f2e27a223fe60ea6 (patch) | |
| tree | b34ee92f9a4e0e4c1f7e4dcf5f15b396f9097d6f /lib/classes/WidgetContainer.php | |
| parent | 1231022837beceedef376e4bb8084ff38fbc7d93 (diff) | |
rework aux lock rules, use sorm model, deprecate old class and let name and description be translatable, fixes #1791
Closes #1791
Merge request studip/studip!1177
Diffstat (limited to 'lib/classes/WidgetContainer.php')
| -rw-r--r-- | lib/classes/WidgetContainer.php | 5 |
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) { |
