public function widget(string $name) : Widget\WidgetLabelDefiner
    {
        return new WidgetLabelDefiner($name, $this->authSystem, $this->requiredPermissions, $this->tables, $this->charts, $this->actions,
            function (IWidget $widget) {
                $this->widgets[$widget->getName()] = $widget;
            });
    }
public function widget(string $name) : Widget\WidgetLabelDefiner
    {
        return new WidgetLabelDefiner($name, $this->authSystem, $this->requiredPermissions, $this->tables, $this->charts, $this->actions,
            function (IWidget $widget) {
                $this->widgets[$widget->getName()] = $widget;
            });
    }
public function widget ( string $ name ) : Widget \ WidgetLabelDefiner { return new WidgetLabelDefiner ( $ name , $ this -> authSystem , $ this -> requiredPermissions , $ this -> tables , $ this -> charts , $ this -> actions , function ( IWidget $ widget ) { $ this -> widgets [ $ widget -> getName ( ) ] = $ widget ; } ) ; }
Defines a widget with the supplied name.

@param string $name

@return WidgetLabelDefiner
Defines a widget with the supplied name .