@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | * |
| 55 | 55 | * @param object $builder The builder to create customized widget objects. |
| 56 | 56 | * @throws InvalidArgumentException If the argument is not a widget builder. |
| 57 | - * @return DashboardInterface Chainable |
|
| 57 | + * @return DashboardTrait Chainable |
|
| 58 | 58 | */ |
| 59 | 59 | protected function setWidgetBuilder($builder) |
| 60 | 60 | { |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | * @param callable|null $callable A callback to be applied to each widget |
| 79 | 79 | * or NULL to disable the callback. |
| 80 | 80 | * @throws InvalidArgumentException If the argument is not callable or NULL. |
| 81 | - * @return DashboardInterface Chainable |
|
| 81 | + * @return DashboardTrait Chainable |
|
| 82 | 82 | */ |
| 83 | 83 | public function setWidgetCallback($callable) |
| 84 | 84 | { |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | * Set the dashboard's widgets. |
| 107 | 107 | * |
| 108 | 108 | * @param array $widgets A collection of widgets. |
| 109 | - * @return DashboardInterface Chainable |
|
| 109 | + * @return DashboardTrait Chainable |
|
| 110 | 110 | */ |
| 111 | 111 | public function setWidgets(array $widgets) |
| 112 | 112 | { |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | * @param string $widgetIdent The widget identifier. |
| 128 | 128 | * @param UiItemInterface|array $widget The widget object or structure. |
| 129 | 129 | * @throws InvalidArgumentException If the widget is invalid. |
| 130 | - * @return DashboardInterface Chainable |
|
| 130 | + * @return DashboardTrait Chainable |
|
| 131 | 131 | */ |
| 132 | 132 | public function addWidget($widgetIdent, $widget) |
| 133 | 133 | { |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | * Retrieve the dashboard's widgets. |
| 161 | 161 | * |
| 162 | 162 | * @param callable $widgetCallback A callback applied to each widget. |
| 163 | - * @return UiItemInterface[]|Generator |
|
| 163 | + * @return \Generator |
|
| 164 | 164 | */ |
| 165 | 165 | public function widgets(callable $widgetCallback = null) |
| 166 | 166 | { |