public function add(WidgetAssetInterface $widget)
    {
        $widget->setKey();
        $this->queue[$widget->getKey()] = $widget;
    }
public function add(WidgetAssetInterface $widget)
    {
        $widget->setKey();
        $this->queue[$widget->getKey()] = $widget;
    }
public function add ( WidgetAssetInterface $ widget ) { $ widget -> setKey ( ) ; $ this -> queue [ $ widget -> getKey ( ) ] = $ widget ; }
Add a widget to the queue.

@param WidgetAssetInterface $widget
Add a widget to the queue .