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